3553522328
This pull request adds a new parameter to the REST Search API named `typed_keys`. When set to true, the aggregation names in the search response will be prefixed with a prefix that reflects the internal type of the aggregation. Here is a simple example: ``` GET /_search?typed_keys { "aggs": { "tweets_per_user": { "terms": { "field": "user" } } }, "size": 0 } ``` And the response: ``` { "aggs": { "sterms:tweets_per_user": { ... } } } ``` This parameter is intended to make life easier for REST clients that could parse back the prefix and could detect the type of the aggregation to parse. It could also be implemented for suggesters. |
||
---|---|---|
.. | ||
bucket | ||
matrix | ||
metrics | ||
pipeline | ||
bucket.asciidoc | ||
matrix.asciidoc | ||
metrics.asciidoc | ||
misc.asciidoc | ||
pipeline.asciidoc |