DateRangeSearchFacet
in package
implements
JsonSerializable, SearchFacet
A facet that categorizes hits inside date ranges (or buckets) provided by the user.
Interfaces, Classes and Traits
- JsonSerializable
- SearchFacet
- Common interface for all search facets
Table of Contents
- __construct() : mixed
- addRange() : DateRangeSearchFacet
- jsonSerialize() : mixed
Methods
__construct()
public
__construct(string $field, int $limit) : mixed
Parameters
- $field : string
- $limit : int
Return values
mixed —addRange()
public
addRange(string $name[, int|string $start = null ][, int|string $end = null ]) : DateRangeSearchFacet
Parameters
- $name : string
- $start : int|string = null
- $end : int|string = null
Return values
DateRangeSearchFacet —jsonSerialize()
public
jsonSerialize() : mixed