NumericRangeSearchFacet implements JsonSerializable, SearchFacet
A facet that categorizes hits into numerical ranges (or buckets) provided by the user.
Table of Contents
jsonSerialize() | mixed | |
---|---|---|
__construct() | mixed | |
addRange() | NumericRangeSearchFacet |
Methods
jsonSerialize()
public
jsonSerialize(
)
: mixed
Return values
mixed__construct()
public
__construct(
$field :
string
, $limit :
int
)
: mixed
Parameters
- $field : string
- $limit : int
Return values
mixedaddRange()
public
addRange(
$name :
string
[, $min :
float
= null ]
[, $max :
float
= null ]
)
: NumericRangeSearchFacet
Parameters
- $name : string
- $min : float = null
- $max : float = null