Skip to content

Instantly share code, notes, and snippets.

@RobGThai
Created August 28, 2016 18:04
Show Gist options
  • Save RobGThai/a841d3b7b6b481f2def759ac08b00659 to your computer and use it in GitHub Desktop.
Save RobGThai/a841d3b7b6b481f2def759ac08b00659 to your computer and use it in GitHub Desktop.
Example of how to query range with Elasticsearch.
{
"query": {
"bool": {
"must": [
{"range": {
"salary": {
"gte": 20000,
"lte": 60000
}
}}
]
}
},
"size": 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment