OpenSearch/modules/lang-mustache
Tanguy Leroux 3553522328 Add parameter to prefix aggs name with type in search responses (#22965)
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.
2017-02-09 11:19:04 +01:00
..
licenses Dependencies: Updates to mustache 0.9.3 (#20337) 2016-09-06 13:31:59 +02:00
src Add parameter to prefix aggs name with type in search responses (#22965) 2017-02-09 11:19:04 +01:00
build.gradle Dependencies: Updates to mustache 0.9.3 (#20337) 2016-09-06 13:31:59 +02:00