Fix typo in example (grades_count -> types_count) (#24635)

Looks like `doc.grade` was used for examples before. But not anymore - https://www.elastic.co/guide/en/elasticsearch/reference/2.4/search-aggregations-metrics-valuecount-aggregation.html
This commit is contained in:
Vlad Holubiev 2017-05-15 21:08:46 +03:00 committed by Nik Everett
parent 92ba969804
commit 557390d7d1
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ Response:
--------------------------------------------------
// TESTRESPONSE[s/\.\.\./"took": $body.took,"timed_out": false,"_shards": $body._shards,"hits": $body.hits,/]
The name of the aggregation (`grades_count` above) also serves as the key by which the aggregation result can be
The name of the aggregation (`types_count` above) also serves as the key by which the aggregation result can be
retrieved from the returned response.
==== Script
@ -65,7 +65,7 @@ This will interpret the `script` parameter as an `inline` script with the `painl
POST /sales/_search?size=0
{
"aggs" : {
"grades_count" : {
"types_count" : {
"value_count" : {
"script" : {
"file": "my_script",