Class

eZ\Publish\Core\Search\Elasticsearch\Content\SortClauseVisitor\FieldBase

abstract class FieldBase extends SortClauseVisitor

Base class for Field sort clauses.

Methods

bool canVisit(SortClause $sortClause)

Check if visitor is applicable to current sort clause.

from SortClauseVisitor
mixed visit(SortClause $sortClause)

Map field value to a proper Elasticsearch representation.

from SortClauseVisitor
__construct(FieldNameResolver $fieldNameResolver)

Details

in SortClauseVisitor at line 25
abstract public bool canVisit(SortClause $sortClause)

Check if visitor is applicable to current sort clause.

Parameters

SortClause $sortClause

Return Value

bool

in SortClauseVisitor at line 34
abstract public mixed visit(SortClause $sortClause)

Map field value to a proper Elasticsearch representation.

Parameters

SortClause $sortClause

Return Value

mixed Hash representation of Elasticsearch sort

at line 30
public __construct(FieldNameResolver $fieldNameResolver)

Parameters

FieldNameResolver $fieldNameResolver