Skip to content

Instantly share code, notes, and snippets.

@vinodc
Created April 1, 2012 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinodc/2277616 to your computer and use it in GitHub Desktop.
Save vinodc/2277616 to your computer and use it in GitHub Desktop.
filtered query with range
curl -XGET 'localhost:9200/index/doc/_search' -d '{
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"range": {
"field1": {
"from": 900,
"to": 1000
},
"field2": {
"from": 900,
"to": 10000
}
}
}
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment