Skip to content

Instantly share code, notes, and snippets.

@av-ast
Created November 27, 2012 20:05
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 av-ast/4156678 to your computer and use it in GitHub Desktop.
Save av-ast/4156678 to your computer and use it in GitHub Desktop.
ES FilteredQuery
$ curl -X GET "http://localhost:9200/videos/_search?from=0&load=true&size=10&pretty=true" -d '
{
"query" :
{
"filtered" :
{
"query":
{
"match_all":{}
},
"filter":
{
"terms":{"broadcasting_regions.region.name":["rururu"]}
}
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment