class TermSearchFacet implements JsonSerializable, SearchFacet (View source)

A facet that gives the number of occurrences of the most recurring terms in all hits.

Methods

mixed
jsonSerialize()

Specify data which should be serialized to JSON

__construct(string $field, int $limit)

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