Class

eZ\Publish\Core\Search\Elasticsearch\Content\Location\CriterionVisitor\LocationRemoteIdIn

class LocationRemoteIdIn extends CriterionVisitor

Visits the LocationRemoteId criterion.

Methods

bool canVisit(Criterion $criterion)

Check if visitor is applicable to current criterion.

mixed visitFilter(Criterion $criterion, CriterionVisitorDispatcher $dispatcher, array $languageFilter)

Map field value to a proper Elasticsearch filter representation.

mixed visitQuery(Criterion $criterion, CriterionVisitorDispatcher $dispatcher, array $languageFilter)

Map field value to a proper Elasticsearch query representation.

from CriterionVisitor

Details

at line 28
public bool canVisit(Criterion $criterion)

Check if visitor is applicable to current criterion.

Parameters

Criterion $criterion

Return Value

bool

at line 47
public mixed visitFilter(Criterion $criterion, CriterionVisitorDispatcher $dispatcher, array $languageFilter)

Map field value to a proper Elasticsearch filter representation.

Parameters

Criterion $criterion
CriterionVisitorDispatcher $dispatcher
array $languageFilter

Return Value

mixed Hash representation of Elasticsearch filter abstract syntax tree

in CriterionVisitor at line 55
public mixed visitQuery(Criterion $criterion, CriterionVisitorDispatcher $dispatcher, array $languageFilter)

Map field value to a proper Elasticsearch query representation.

By default this method fallbacks on {@link self::visitFilter()}, override it as needed.

Parameters

Criterion $criterion
CriterionVisitorDispatcher $dispatcher
array $languageFilter

Return Value

mixed Hash representation of Elasticsearch query abstract syntax tree