Allow "exists" predicate on object field that has different children when targeting multiple Lucene indexes

Description

See org.hibernate.search.backend.lucene.search.impl.LuceneMultiIndexSearchObjectFieldContext#staticChildrenByName, org.hibernate.search.integrationtest.backend.tck.search.predicate.ExistsPredicateObjectsSpecificsIT#nested_multiIndexes_differentFields, org.hibernate.search.integrationtest.backend.tck.search.predicate.ExistsPredicateObjectsSpecificsIT#flattened_multiIndexes_differentFields.

We currently throw an exception in this case, but I'm quite sure that simply removing the check would work perfectly well, as longs as value field definitions in the various indexes are compatible. We just need to write tests.

Environment

None

Assignee

Unassigned

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Priority

Major
Configure