Search for a parent or child

We are investigating splitting nested documents up into parent/child documents.

I'm wondering, how can we query/search for a document of a specific type? E.g. we index questions and answers, and want to be able to efficiently search for questions or answers regardless of the relationship.

We don't want to invest into _type since it's being deprecated and removed. has_child/has_parent queries have performance warnings about using them in the docs. What is the correct way to achieve this?

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