Parent child using OR condition between parent and child fields

I am trying to query with parent field OR child field. I am using has_parent to retrieve the parent documents in the response.

How to retrieve all the parent documents even when there is no match for the search term.

"must" : [
{
"query_string": {
"query": "(headline: business OR Angel)"
}
},
{ "bool" : {
"should" : [
{
"query_string": {
"query": "(summary: Unilever)"
}
},
{
"has_parent":
{
"parent_type": "publishedarticle",
"query":
{
"query_string": {
"query": "(content:"Romania's")"
}
},
"inner_hits":{
"highlight":
{
"fields":{
"content":{}
}
}
}
}
}
]
}}
]

In the above query i am unable to get parent documents which doesn't have Romania's in it ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.