Class

eZ\Publish\Core\Search\Elasticsearch\Content\CriterionVisitorDispatcher

class CriterionVisitorDispatcher

Dispatches Criterion objects to a visitor depending on the query context.

Constants

CONTEXT_QUERY

Query visiting context.

CONTEXT_FILTER

Filter visiting context.

Methods

__construct(array $visitors = array())

Construct from optional visitor array.

addVisitor(CriterionVisitor $visitor)

Adds visitor.

string dispatch(Criterion $criterion, string $context, array $languageFilter = array())

Map field value to a proper Elasticsearch representation.

Details

at line 52
public __construct(array $visitors = array())

Construct from optional visitor array.

Parameters

array $visitors

at line 64
public addVisitor(CriterionVisitor $visitor)

Adds visitor.

Parameters

CriterionVisitor $visitor

at line 80
public string dispatch(Criterion $criterion, string $context, array $languageFilter = array())

Map field value to a proper Elasticsearch representation.

Parameters

Criterion $criterion
string $context
array $languageFilter

Return Value

string

Exceptions

NotImplementedException