Skip to content

Instantly share code, notes, and snippets.

@chrismale
Created November 20, 2012 03:26
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 chrismale/4115758 to your computer and use it in GitHub Desktop.
Save chrismale/4115758 to your computer and use it in GitHub Desktop.
ElasticSearch DSL and NumericRangeQuery
{
"filtered" : {
"query" : {
"query_string" : {
"query" : "YOUR_QUERY_STRING"
}
},
"filter" : {
"numeric_range" : {
"from" : "LOWER_END",
"to" : "UPPER_END"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment