You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The field existence query doesn't work on nested field unless the field is terminal
Steps to reproduce (if applicable)
Indexing a document like the following
{"foo": {"bar": 1},"whiz": true}
No Matches
foo:*
Matches
foo:bar:*
Matches
whiz:*
Expected behavior
I would expect a document with a field of foo to match when using the existence query even if the field value is an object. That is the behavior seen by elasticsearch nested fields.
My understanding is that your plan si to implement in both fast field / indexed field
Definitively for fast fields as it can be done without changing the indexing side. For indexed fields, I am still looking for a way to do it without indexing intermediate paths but I doubt it will be possible. Ideally, I think it should also be implemented for object types.
Describe the bug
The field existence query doesn't work on nested field unless the field is terminal
Steps to reproduce (if applicable)
Indexing a document like the following
No Matches
Matches
Matches
Expected behavior
I would expect a document with a field of foo to match when using the existence query even if the field value is an object. That is the behavior seen by elasticsearch nested fields.
Version Information
The text was updated successfully, but these errors were encountered: