Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

Commit 1a5bca3

Browse files
Append .keyword to field in basic aggs example
Relates elastic/elasticsearch#17188
2 parents 912e887 + 294895b commit 1a5bca3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

300_Aggregations/20_basic_example.asciidoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ GET /cars/transactions/_search
5252
"aggs" : { <1>
5353
"popular_colors" : { <2>
5454
"terms" : { <3>
55-
"field" : "color"
55+
"field" : "color.keyword"
5656
}
5757
}
5858
}
@@ -96,10 +96,12 @@ Let's execute that aggregation and take a look at the results:
9696
{
9797
...
9898
"hits": {
99+
...
99100
"hits": [] <1>
100101
},
101102
"aggregations": {
102103
"popular_colors": { <2>
104+
...
103105
"buckets": [
104106
{
105107
"key": "red", <3>

0 commit comments

Comments
 (0)