Skip to content

Commit

Permalink
Improved Terms Aggregation documentation (#38892)
Browse files Browse the repository at this point in the history
Added a note after the first query example talking about fielddata.
  • Loading branch information
srensamblador authored and polyfractal committed Mar 5, 2019
1 parent 49ff384 commit 4615e72
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,15 @@ GET /_search
{
"aggs" : {
"genres" : {
"terms" : { "field" : "genre" }
"terms" : { "field" : "genre" } <1>
}
}
}
--------------------------------------------------
// CONSOLE
// TEST[s/_search/_search\?filter_path=aggregations/]
<1> `terms` aggregation should be a field of type `keyword` or any other data type suitable for bucket aggregations. In order to use it with `text` you will need to enable
<<fielddata, fielddata>>.

Response:

Expand Down

0 comments on commit 4615e72

Please sign in to comment.