We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For now, there is only option 'field' available, but not 'script':
Counting the values generated by a script: { ..., "aggs" : { "grades_count" : { "value_count" : { "script" : "doc['grade'].value" } } } }
Counting the values generated by a script:
{ ...,
"aggs" : { "grades_count" : { "value_count" : { "script" : "doc['grade'].value" } } }
}
http://www.elastic.co/guide/en/elasticsearch/reference/1.4/search-aggregations-metrics-valuecount-aggregation.html#_script_7
The text was updated successfully, but these errors were encountered:
Currently i am using something like this get around this issue:
type ScriptAggregate struct { Script string `json:"script"` } func (d *AggregateDsl) ValueCountByScript(script string) *AggregateDsl { d.Type = ScriptAggregate{Script: script} d.TypeName = "value_count" return d }
Sorry, something went wrong.
No branches or pull requests
For now, there is only option 'field' available, but not 'script':
http://www.elastic.co/guide/en/elasticsearch/reference/1.4/search-aggregations-metrics-valuecount-aggregation.html#_script_7
The text was updated successfully, but these errors were encountered: