PHP Class eZ\Publish\Core\FieldType\TextBlock\SearchField

Inheritance: implements eZ\Publish\SPI\FieldType\Indexable
Mostrar archivo Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
getDefaultMatchField ( ) : string Get name of the default field to be used for matching.
getDefaultSortField ( ) : string Get name of the default field to be used for sorting.
getIndexData ( eZ\Publish\SPI\Persistence\Content\Field $field, eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition ) : eZ\Publish\SPI\Search\Field[] Get index data for field for search backend.
getIndexDefinition ( ) : eZ\Publish\SPI\Search\FieldType[] Get index field types for search backend.

Method Details

getDefaultMatchField() public method

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.
public getDefaultMatchField ( ) : string
return string

getDefaultSortField() public method

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.
public getDefaultSortField ( ) : string
return string

getIndexData() public method

Get index data for field for search backend.
public getIndexData ( eZ\Publish\SPI\Persistence\Content\Field $field, eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition ) : eZ\Publish\SPI\Search\Field[]
$field eZ\Publish\SPI\Persistence\Content\Field
$fieldDefinition eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition
return eZ\Publish\SPI\Search\Field[]

getIndexDefinition() public method

Get index field types for search backend.
public getIndexDefinition ( ) : eZ\Publish\SPI\Search\FieldType[]
return eZ\Publish\SPI\Search\FieldType[]