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
in the InnerHits.Builder the serialiser/deserialiser is generating/expecting the wrong json field name for "stored_fields".
It is actually using "stored_field" (singular).
Thus, Is not possible to create queries that uses InnerHits with storedFields.
Any queries constructed with inner_hits + stored_field will fail to execute in OpenSearch due to the fact that "stored_field" (singular) is not valid.
Worse still, when generating request from Json, the "stored_fields" field is not deserialised. So nothing about those fields are found in the final json sent to OpenSearch.
What is the bug?
in the InnerHits.Builder the serialiser/deserialiser is generating/expecting the wrong json field name for "stored_fields".
It is actually using "stored_field" (singular).
Thus, Is not possible to create queries that uses InnerHits with storedFields.
Any queries constructed with inner_hits + stored_field will fail to execute in OpenSearch due to the fact that "stored_field" (singular) is not valid.
Worse still, when generating request from Json, the "stored_fields" field is not deserialised. So nothing about those fields are found in the final json sent to OpenSearch.
How can one reproduce the bug?
this test will fail.
What is the expected behavior?
The builder should generate "stored_fields" instead of "store_field"
What is your host/environment?
macOS 14.1.2
Do you have any screenshots?
not needed
Do you have any additional context?
Well, the name of the serialized field is wrong, no extra context is needed I guess...
The text was updated successfully, but these errors were encountered: