Class

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

abstract class SortClauseVisitor

Visits the sort clause into a hash representation of Elasticsearch sort.

Methods

bool canVisit(SortClause $sortClause)

Check if visitor is applicable to current sort clause.

mixed visit(SortClause $sortClause)

Map field value to a proper Elasticsearch representation.

Details

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

Check if visitor is applicable to current sort clause.

Parameters

SortClause $sortClause

Return Value

bool

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