SearchVectorField
extends AbstractDcaField
in package
Adds a field holding the normalized and stemmed values of other fields, so records can be searched with SearchVectorQuery.
Only one search vector field per table is supported. Registering a second one throws an exception when the DCA of the table is loaded.
Table of Contents
Properties
- $pendingRegistrations : array<string, array<int, SearchVectorFieldConfiguration>>
- Registrations since the DCA of a table was loaded the last time, to detect several registrations in one DCA.
- $tables : array<string|int, mixed>
Methods
- getRegistrations() : array<string, SearchVectorFieldConfiguration>
- register() : SearchVectorFieldConfiguration
- Register a dca to have an author field and update logic added.
- createOptionObject() : DcaFieldConfiguration
- loadConfig() : array<string|int, mixed>
- storeConfig() : void
Properties
$pendingRegistrations
Registrations since the DCA of a table was loaded the last time, to detect several registrations in one DCA.
protected
static array<string, array<int, SearchVectorFieldConfiguration>>
$pendingRegistrations
= []
$tables
protected
static array<string|int, mixed>
$tables
= []
Methods
getRegistrations()
public
static getRegistrations() : array<string, SearchVectorFieldConfiguration>
Return values
array<string, SearchVectorFieldConfiguration>register()
Register a dca to have an author field and update logic added.
public
static register(string $table) : SearchVectorFieldConfiguration
Parameters
- $table : string
Return values
SearchVectorFieldConfigurationcreateOptionObject()
protected
static createOptionObject(string $table) : DcaFieldConfiguration
Parameters
- $table : string
Return values
DcaFieldConfigurationloadConfig()
protected
static loadConfig() : array<string|int, mixed>
Return values
array<string|int, mixed>storeConfig()
protected
static storeConfig(DcaFieldConfiguration $config) : void
Parameters
- $config : DcaFieldConfiguration