Class

eZ\Publish\API\Repository\Values\Content\Query\FacetBuilder\FieldRangeFacetBuilder

abstract class FieldRangeFacetBuilder extends FacetBuilder

Build a field range facet.

If provided the search service returns a FieldRangeFacet for the given field path. A field path starts with a field identifier and may contain a subpath in the case of complex field types

Properties

string $name The name of the facet.
bool $global If true the facet runs in a global mode not restricted by the query.
Criterion $filter An additional facet filter that will further filter the documents the facet will be executed on.
int $limit Number of facets (terms) returned.
int $minCount Specifies the minimum count.
string $fieldPath The field path starts with a field identifier and a sub path (for complex types).

Methods

addUnboundedFrom(mixed $to)

Adds a range entry with explicit to and unbounded from.

addRange(mixed $from, mixed $to)

Adds a range.

addUnboundedTo(mixed $from)

Adds a range entry with explicit from and unbounded to.

Details

at line 34
abstract public addUnboundedFrom(mixed $to)

Adds a range entry with explicit to and unbounded from.

Parameters

mixed $to

at line 42
abstract public addRange(mixed $from, mixed $to)

Adds a range.

Parameters

mixed $from
mixed $to

at line 49
abstract public addUnboundedTo(mixed $from)

Adds a range entry with explicit from and unbounded to.

Parameters

mixed $from