DateRangeSearchFacet implements JsonSerializable, SearchFacet
A facet that categorizes hits inside date ranges (or buckets) provided by the user.
Table of Contents
jsonSerialize() | mixed | |
---|---|---|
__construct() | mixed | |
addRange() | DateRangeSearchFacet |
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
[, $start :
int|string
= null ]
[, $end :
int|string
= null ]
)
: DateRangeSearchFacet
Parameters
- $name : string
- $start : int|string = null
- $end : int|string = null