From 034adeb94748a7b99a3fffa3090e9e9d8f7cde5b Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Fri, 22 Apr 2016 16:34:15 -0700 Subject: [PATCH] Docs: Update example aggs to use dynamic keyword field The getting started docs use dynamic mappings. With the recent change to string split into text and keyword, text lost the default ability to do aggs. This was added back in #17188. This change updates the getting started examples to use the keyword multi field added to dynamically mapped text fields. closes #17941 --- docs/reference/getting-started.asciidoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/reference/getting-started.asciidoc b/docs/reference/getting-started.asciidoc index 47bcb3031ff..f154e5d7a66 100755 --- a/docs/reference/getting-started.asciidoc +++ b/docs/reference/getting-started.asciidoc @@ -904,7 +904,7 @@ curl -XPOST 'localhost:9200/bank/_search?pretty' -d ' "aggs": { "group_by_state": { "terms": { - "field": "state" + "field": "state.keyword" } } } @@ -979,7 +979,7 @@ curl -XPOST 'localhost:9200/bank/_search?pretty' -d ' "aggs": { "group_by_state": { "terms": { - "field": "state" + "field": "state.keyword" }, "aggs": { "average_balance": { @@ -1005,7 +1005,7 @@ curl -XPOST 'localhost:9200/bank/_search?pretty' -d ' "aggs": { "group_by_state": { "terms": { - "field": "state", + "field": "state.keyword", "order": { "average_balance": "desc" }