This is a sub-issue of [HSEARCH-3752|https://hibernate.atlassian.net/browse/HSEARCH-3752] but only for the sub-case of exists predicate which is targeting an object field.
in this case we should automatically add a join query ("nested" predicate), in order to match not just the fields within the target object, but also the fields contained in the nested objects that are contained in turn in the target object.
Probably to handle such a query we will need a boolean query grouping all the cases in Elasticsearch as well. |
|