Skip to content

Instantly share code, notes, and snippets.

Created September 19, 2011 13:31
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 anonymous/1226500 to your computer and use it in GitHub Desktop.
Save anonymous/1226500 to your computer and use it in GitHub Desktop.
ES: Parent Child Evaluation
curl -XGET 'http://localhost:9200/parchildev/_search' -d '
{
"query" : {
"filtered" : {
"query" : {
"query_string" : {
"query" : "entry 1"
}
},
"filter" :
{"or" :
[
{
"type" : { "value" : "attachment" }
},{
"has_child": {
"type": "comment",
"query": {
"query_string" : {
"query" : "entry 1"
}
}
}
}
]
}
}
}
}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment