Class

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

abstract class CustomField extends FieldFilterBase

Base class for CustomField criterion visitors.

Methods

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

Map field value to a proper Elasticsearch query representation.

Details

at line 39
public mixed visitQuery(Criterion $criterion, CriterionVisitorDispatcher $dispatcher, array $languageFilter)

Map field value to a proper Elasticsearch query representation.

Parameters

Criterion $criterion
CriterionVisitorDispatcher $dispatcher
array $languageFilter

Return Value

mixed

Exceptions

InvalidArgumentException If no searchable fields are found for the given criterion target.