Copied!

Indexable

Indexable.php : 16

The field type interface which all field types have to implement to be indexable by search backends.

Methods

publicgetDefaultMatchField()

Indexable.php : 44

Get name of the default field to be used for matching.

public getDefaultMatchField() : string|null

As field types can index multiple fields (see MapLocation field type's implementation of this interface), this method is used to define default field for matching. Default field is typically used by Field criterion.

Return values

string|null

publicgetDefaultSortField()

Indexable.php : 55

Get name of the default field to be used for sorting.

public getDefaultSortField() : string|null

As field types can index multiple fields (see MapLocation field type's implementation of this interface), this method is used to define default field for sorting. Default field is typically used by Field sort clause.

Return values

string|null

publicgetIndexData()

Indexable.php : 26

Get index data for field for search backend.

public getIndexData(Field $field, FieldDefinition $fieldDefinition) : array<string|int, Field>

Parameters

Name Type Default value Description
$field Field - -
$fieldDefinition FieldDefinition - -

Return values

array<string|int, Field>

publicgetIndexDefinition()

Indexable.php : 33

Get index field types for search backend.

public getIndexDefinition() : array<string, FieldType>

Return values

array<string, FieldType>