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
When creating an index mapping with an object field that has a subfield of flat_objectexists queries or query strings with <field>:* throw a string_index_out_of_bounds_exception.
Related component
Search
To Reproduce
Create an index with a mapping with a flat_object subfield to an object:
It's imported by DynamicKeyFieldTypeLookup, when iterating through all fields, the DynamicKeyFieldTypeLookup imports a dynamic field named "foo. baz.", which casues the exception.
It's imported by DynamicKeyFieldTypeLookup, when iterating through all fields, the DynamicKeyFieldTypeLookup imports a dynamic field named "foo. baz.", which casues the exception.
Describe the bug
When creating an index mapping with an object field that has a subfield of
flat_object
exists
queries or query strings with<field>:*
throw astring_index_out_of_bounds_exception
.Related component
Search
To Reproduce
Create an index with a mapping with a
flat_object
subfield to an object:Create a document to search:
Search with an exists query:
Result is an exception:
NOTE: exists query on
foo.bar
orfoo.baz
operate as expected. Only affected for the top-level field.Expected behavior
Searching for
_exists_: foo
should not throw an exception.Additional Details
Tested on Opensearch versions
2.15.0
and2.18.0
The text was updated successfully, but these errors were encountered: