Last active
December 28, 2015 21:44
-
-
Save kulikov/ab2a82284a26a3eff864 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo '{ | |
"query": { | |
"bool": { | |
"must": [ | |
{ "terms": { "person": ["bob", "jake"] } }, | |
{ "range": { "score": { "gt": 0 } } } | |
] | |
} | |
}, | |
"aggs": { | |
"max": { "max": { "field": "score" } }, | |
"min": { "min": { "field": "score" } }, | |
"avg": { "avg": { "field": "score" } }, | |
"sum": { "sum": { "field": "score" } } | |
} | |
}' | http http://127.0.0.1:9200/demo/_search |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment