Skip to content

Instantly share code, notes, and snippets.

@plaflamme
Forked from kimchy/gist:995045
Created May 28, 2011 12:59
Show Gist options
  • Save plaflamme/996843 to your computer and use it in GitHub Desktop.
Save plaflamme/996843 to your computer and use it in GitHub Desktop.
curl localhost:9200/_search -d '{
"query" : {
"filtered" : {
"query" : {"match_all" : {}},
"filter" : {
"or" : [
{
"range" : {
"file_size" : {"from" : 10, "to" : 10000}
}
},
{
"range" : {
"file_size" : {"from" : 10001, "to" : 1000001}
}
}
]
}
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment