Retrieve children docs only


(avasilenko) #1

Hello,

I have 1 index object with 2 types: entity and shop. Object shop is child of object entity and has following mapping.
Sending this query to object/_search returns me the child doc only, which is ok, as I can manually join it.
But, when I add term for parent doc, I receive parent doc only as a search hit. Query example.

Since according to the docs there is no way to perform parent and child join, can I at least fetch child docs with search conditions specified for both parent and child?

Regards,
Alex


(system) #2