Skip to content

Instantly share code, notes, and snippets.

@lukewertz
Created February 21, 2013 04:21
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 lukewertz/0e49100d86e9a94c24c5 to your computer and use it in GitHub Desktop.
Save lukewertz/0e49100d86e9a94c24c5 to your computer and use it in GitHub Desktop.
curl -XGET localhost:9200/bundles/bundle/_search?pretty=true -d '
{
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"nested": {
"path": "movies",
"query": {
"text": {"movies.title" : "The Matrix" }
}
}
}
}
}
}
}';
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 0,
"max_score" : null,
"hits" : [ ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment