Contao Utils Bundle

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 = []

Methods

loadConfig()

protected static loadConfig() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results