Skip to content

Instantly share code, notes, and snippets.

@radu-gheorghe
Created September 11, 2014 08:45
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 radu-gheorghe/7d6bcf5c6858537d06b7 to your computer and use it in GitHub Desktop.
Save radu-gheorghe/7d6bcf5c6858537d06b7 to your computer and use it in GitHub Desktop.
limit filter
{
"from": 0,
"size": 25,
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"bool": {
"must": {
"limit": {
"value": 10
}
},
"must_not": {
"term": {
"available": false
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment