class NumericRangeSearchFacet implements JsonSerializable, SearchFacet (View source)

A facet that categorizes hits into numerical ranges (or buckets) provided by the user.

Methods

mixed
jsonSerialize()

Specify data which should be serialized to JSON

__construct(string $field, int $limit)

No description

addRange(string $name, float $min = null, float $max = null)

No description

Details

mixed jsonSerialize()

Specify data which should be serialized to JSON

Return Value

mixed

data which can be serialized by json_encode, which is a value of any type other than a resource.

__construct(string $field, int $limit)

No description

Parameters

string $field
int $limit

NumericRangeSearchFacet addRange(string $name, float $min = null, float $max = null)

No description

Parameters

string $name
float $min
float $max

Return Value

NumericRangeSearchFacet