Join fields in script

Hi!
Our index has a join field (parent documents with many child items). We would like to make a search on child items, with a filter that use some information from the parent document.
Is it possible to access parent fields in the filter script? If so, how can we do it? Would it need a recent version of ES?
Thanks!

Parnt/child documents are not accessible to each other, as they are separate Lucene documents. Take a look at the has parent query. From there you can filter which children match based on the respective parent.

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