PHP Class eZ\Publish\Core\Search\Elasticsearch\Content\SortClauseVisitor\Field\MapLocationDistance

Inheritance: extends eZ\Publish\Core\Search\Elasticsearch\Content\SortClauseVisitor\FieldBase
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.

Public Methods

Method Description
__construct ( FieldNameResolver $fieldNameResolver, string $fieldName )
canVisit ( eZ\Publish\API\Repository\Values\Content\Query\SortClause $sortClause ) : boolean Check if visitor is applicable to current sortClause.
visit ( eZ\Publish\API\Repository\Values\Content\Query\SortClause $sortClause ) : mixed Map field value to a proper Elasticsearch representation.

Method Details

__construct() public method

public __construct ( FieldNameResolver $fieldNameResolver, string $fieldName )
$fieldNameResolver eZ\Publish\Core\Search\Common\FieldNameResolver
$fieldName string

canVisit() public method

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

visit() public method

Map field value to a proper Elasticsearch representation.
public visit ( eZ\Publish\API\Repository\Values\Content\Query\SortClause $sortClause ) : mixed
$sortClause eZ\Publish\API\Repository\Values\Content\Query\SortClause
return mixed

Property Details

$fieldName protected property

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