Skip to content

Instantly share code, notes, and snippets.

@shardnit
Created February 15, 2012 16:29
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 shardnit/1837082 to your computer and use it in GitHub Desktop.
Save shardnit/1837082 to your computer and use it in GitHub Desktop.
Parent/child Filter Search
curl -d 'http://localhost:9200/pictures/_search' -d
{
"query": {
"has_child":{
"type":"interaction",
"filtered" : {
"query" : {
"term" : { "text" : "house" }
},
"filter" : {
"and" : [
{
"term" : { "text" : "cup" }
}
]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment