Class

eZ\Publish\Core\Search\Elasticsearch\Content\CriterionVisitor\DateMetadata

abstract class DateMetadata extends CriterionVisitor

Base class for DateMetadata criterion visitors.

Methods

bool canVisit(Criterion $criterion)

Check if visitor is applicable to current criterion.

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

Map field value to a proper Elasticsearch filter representation.

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

Map field value to a proper Elasticsearch query representation.

from CriterionVisitor

Details

in CriterionVisitor at line 27
abstract public bool canVisit(Criterion $criterion)

Check if visitor is applicable to current criterion.

Parameters

Criterion $criterion

Return Value

bool

in CriterionVisitor at line 38
abstract 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