exists() predicate ignores nested object fields among children of the targeted object field

Description

Let's say we declare a flattened object field objectField, and inside it a nested object field objectField.nestedField, and inside it a text field objectField.nestedField.textField.

Then an exists() predicate run on field objectField will never, ever match, because the nested object field and its children are ignored.

This is true for both the Lucene and Elasticsearch backend.

Environment

None

Assignee

Unassigned

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Fix versions

Priority

Major
Configure