I'm looking for a solution for the following problem, maybe someone can help me:
I'd like to index documents with a parent-child relationship and be able to search for parent-documents where the search string (provided by users, it could be something like "car sharing") can be only in the parent, only in the child or spreaded in parent and child.
The only solution I could think of so far is splitting the search string and creating a query in which every single term must be in either parent or child. This could result in quiet complex queries, depending on the user input (e.g. "(car AND (sharing OR dealer)").
Is there a way to do this without splitting the search string before and creating a complex query?
There is normaly only one parent and one child document but frequent updates to the child document (that's also the reason for splitting it in parent and child).
Thanks in advance,