v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-142381,278956.3 KB

Aggregates on indexed data with search queries pertaining to particular fields.

Requires permission to access the GetBucketsAggregation action.

post/indices/buckets

Request body

indexNamestring

The name of the index to search.

queryStringstring required

The search query string.

aggregationFieldstring required

The aggregation field.

queryVersionstring

The version of the query.

Response

Success

totalCountinteger

The total number of things that fit the query string criteria.