Does not support "script" in value_clunt aggregation.
This commit is contained in:
parent
cc1ff560df
commit
ba415b8ad2
|
@ -2,7 +2,7 @@
|
|||
=== Value Count
|
||||
|
||||
A `single-value` metrics aggregation that counts the number of values that are extracted from the aggregated documents.
|
||||
These values can be extracted either from specific fields in the documents, or be generated by a provided script. Typically,
|
||||
These values can be extracted either from specific fields in the documents. Typically,
|
||||
this aggregator will be used in conjunction with other single-value aggregations. For example, when computing the `avg`
|
||||
one might be interested in the number of values the average is computed over.
|
||||
|
||||
|
@ -33,17 +33,3 @@ Response:
|
|||
The name of the aggregation (`grades_count` above) also serves as the key by which the aggregation result can be
|
||||
retrieved from the returned response.
|
||||
|
||||
==== Script
|
||||
|
||||
Counting the values generated by a script:
|
||||
|
||||
[source,js]
|
||||
--------------------------------------------------
|
||||
{
|
||||
...,
|
||||
|
||||
"aggs" : {
|
||||
"grades_count" : { "value_count" : { "script" : "doc['grade'].value" } }
|
||||
}
|
||||
}
|
||||
--------------------------------------------------
|
Loading…
Reference in New Issue