Class

eZ\Publish\Core\FieldType\BinaryFile\SearchField

class SearchField implements Indexable

Indexable definition for BinaryFile field type.

Methods

Field[] getIndexData(Field $field, FieldDefinition $fieldDefinition)

Get index data for field for search backend.

FieldType[] getIndexDefinition()

Get index field types for search backend.

string getDefaultMatchField()

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

string getDefaultSortField()

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

Details

at line 29
public Field[] getIndexData(Field $field, FieldDefinition $fieldDefinition)

Get index data for field for search backend.

Parameters

Field $field
FieldDefinition $fieldDefinition

Return Value

Field[]

at line 55
public FieldType[] getIndexDefinition()

Get index field types for search backend.

Return Value

FieldType[]

at line 73
public string getDefaultMatchField()

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

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 Value

string

at line 87
public string getDefaultSortField()

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

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 Value

string