Merge pull request #17942 from rjernst/aggs_example_keyword

Docs: Update example aggs to use dynamic keyword field
This commit is contained in:
Ryan Ernst 2016-04-23 16:20:07 -07:00
commit 30eb72b9cb
1 changed files with 3 additions and 3 deletions

View File

@ -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"
}