I have a requirement where in a parent document has two child documents . For example , the doc which is indexed looks like this ,
{
"id":123,
"name":"nithin",
"_childDocuments_":[
{
"id":"22"
"place":"blr",
"parent_id":123,
"street":"inagar"
},
{
"id":"23"
"place":"tvm",
"parent_id":123,
"street":"bakery"
}
]
}
Here the name - nithin has two child documents with distinct place and street . My requirement is to query for all parents with a specific place and/or street . Lets say blr and bakery. If i fire a query saying (blr and bakery) it would not return any results . I cant use blr or bakery because i want a parent document for which the child docs should have blr and bakery . How do i achieve this ?