PHP Класс Smile\ElasticsuiteCore\Index\Mapping\Field

Автор: Aurelien FOUCRET ([email protected])
Наследование: implements Smile\ElasticsuiteCore\Api\Index\Mapping\FieldInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( string $name, string $type = 'string', null | string $nestedPath = null, array $fieldConfig = [] ) Constructor.
getMappingProperty ( $analyzer = self::ANALYZER_UNTOUCHED ) {@inheritDoc}
getMappingPropertyConfig ( )
getName ( )
getNestedFieldName ( )
getNestedPath ( )
getSearchWeight ( )
getType ( )
isFilterable ( )
isNested ( )
isSearchable ( )
isUsedForSortBy ( ) {@inheritDoc}
isUsedInAutocomplete ( )
isUsedInSpellcheck ( )

Приватные методы

Метод Описание
checkAnalyzer ( array $property, string $expectedAnalyzer ) : boolean Check if an ES property as the right analyzer.
getFieldAnalyzers ( ) : array Retrieve analyzers used with the current field depending of the field configuration.
getMultiFieldMappingPropertyConfig ( array $analyzers ) : array Build a multi_field configuration from an analyzers list.
getPropertyConfig ( string | null $analyzer = self::ANALYZER_UNTOUCHED ) : array Build the property config from the field type and an optional analyzer (used for string and detected through getAnalyzers).

Описание методов

__construct() публичный метод

Constructor.
public __construct ( string $name, string $type = 'string', null | string $nestedPath = null, array $fieldConfig = [] )
$name string Field name.
$type string Field type.
$nestedPath null | string Path for nested fields. null by default and for non-nested fields.
$fieldConfig array Field configuration (see self::$config declaration for available values and default values).

getMappingProperty() публичный метод

{@inheritDoc}
public getMappingProperty ( $analyzer = self::ANALYZER_UNTOUCHED )

getMappingPropertyConfig() публичный метод

getName() публичный метод

public getName ( )

getNestedFieldName() публичный метод

public getNestedFieldName ( )

getNestedPath() публичный метод

public getNestedPath ( )

getSearchWeight() публичный метод

public getSearchWeight ( )

getType() публичный метод

public getType ( )

isFilterable() публичный метод

public isFilterable ( )

isNested() публичный метод

public isNested ( )

isSearchable() публичный метод

public isSearchable ( )

isUsedForSortBy() публичный метод

{@inheritDoc}
public isUsedForSortBy ( )

isUsedInAutocomplete() публичный метод

isUsedInSpellcheck() публичный метод

public isUsedInSpellcheck ( )