PHP Class eZ\Publish\Core\Search\Elasticsearch\Content\CriterionVisitor\Field\MapLocationDistanceRange

Inheritance: extends eZ\Publish\Core\Search\Elasticsearch\Content\CriterionVisitor\Field
Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$fieldName string Name of the field type's indexed field that criterion can handle.
$fieldTypeIdentifier string Identifier of the field type that criterion can handle.

Public Methods

Method Description
__construct ( FieldNameResolver $fieldNameResolver, string $fieldTypeIdentifier, string $fieldName ) Create from FieldNameResolver, FieldType identifier and field name.
canVisit ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion ) : boolean Check if visitor is applicable to current criterion.
visitFilter ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, CriterionVisitorDispatcher $dispatcher, array $languageFilter ) : mixed Map field value to a proper Elasticsearch filter representation.
visitQuery ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, CriterionVisitorDispatcher $dispatcher, array $languageFilter ) : mixed Map field value to a proper Elasticsearch query representation.

Protected Methods

Method Description
getCondition ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion ) : array Returns nested condition common for filter and query contexts.

Method Details

__construct() public method

Create from FieldNameResolver, FieldType identifier and field name.
public __construct ( FieldNameResolver $fieldNameResolver, string $fieldTypeIdentifier, string $fieldName )
$fieldNameResolver eZ\Publish\Core\Search\Common\FieldNameResolver
$fieldTypeIdentifier string
$fieldName string

canVisit() public method

Check if visitor is applicable to current criterion.
public canVisit ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion ) : boolean
$criterion eZ\Publish\API\Repository\Values\Content\Query\Criterion
return boolean

getCondition() protected method

Returns nested condition common for filter and query contexts.
protected getCondition ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion ) : array
$criterion eZ\Publish\API\Repository\Values\Content\Query\Criterion
return array

visitFilter() public method

Map field value to a proper Elasticsearch filter representation.
public visitFilter ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, CriterionVisitorDispatcher $dispatcher, array $languageFilter ) : mixed
$criterion eZ\Publish\API\Repository\Values\Content\Query\Criterion
$dispatcher eZ\Publish\Core\Search\Elasticsearch\Content\CriterionVisitorDispatcher
$languageFilter array
return mixed

visitQuery() public method

Map field value to a proper Elasticsearch query representation.
public visitQuery ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, CriterionVisitorDispatcher $dispatcher, array $languageFilter ) : mixed
$criterion eZ\Publish\API\Repository\Values\Content\Query\Criterion
$dispatcher eZ\Publish\Core\Search\Elasticsearch\Content\CriterionVisitorDispatcher
$languageFilter array
return mixed

Property Details

$fieldName protected property

Name of the field type's indexed field that criterion can handle.
protected string $fieldName
return string

$fieldTypeIdentifier protected property

Identifier of the field type that criterion can handle.
protected string $fieldTypeIdentifier
return string