mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 15:47:23 -04:00
Query API Keys support for both aggs
and aggregations
keywords (#107054)
The Query API Key Information endpoint supports aggs since #104895. But some lang clients actually use the `aggregations` keyword in requests, as the preferred synonym to `aggs`. This PR adds support for the `aggregations` request keyword as a synonym for the existing `aggs` term. Closes #106839
This commit is contained in:
parent
755226df23
commit
36bcb6b398
5 changed files with 96 additions and 14 deletions
|
@ -232,7 +232,7 @@ simply mentioning `metadata` (not followed by any dot and sub-field name).
|
|||
NOTE: You cannot query the role descriptors of an API key.
|
||||
====
|
||||
|
||||
`aggs`::
|
||||
`aggs` or `aggregations`::
|
||||
(Optional, object) Any <<search-aggregations,aggregations>> to run over the corpus of returned API keys.
|
||||
Aggregations and queries work together. Aggregations are computed only on the API keys that match the query.
|
||||
This supports only a subset of aggregation types, namely: <<search-aggregations-bucket-terms-aggregation,terms>>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue