CoolCMS API

EsFacetCountsResult
in package

FinalYes

Result of the ES `terms` aggregation for facet counts.

With fromEs = false (ES off, outage, circuit breaker, incomplete aggregation) the caller switches to the SQL aggregation; same contract as EsSearchResult.

Table of Contents

Properties

$counts  : array<string|int, mixed>
$fromEs  : bool

Methods

__construct()  : mixed
unavailable()  : self

Properties

Methods

__construct()

public __construct(array<string, int> $counts, bool $fromEs) : mixed
Parameters
$counts : array<string, int>

bucket value (<parameterId>:<value>) mapped to the document count

$fromEs : bool
On this page

Search results