Skip to main content

Terms aggregation query on a given property.

POST 

/api/query/termsAggregation

Bucket counts come from a per-shard sample and are approximate; use /api/query with trackTotalCountUpTo: -1 for an exact count. termsAggregationProperty must be a keyword/text property in dot notation (/*/ path syntax returns no buckets; numeric properties are rejected). searchTerm is a case-insensitive contains filter.

Request​

Responses​

Returns the top N terms aggregations matching a given search expression for the given property.