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
SearchResponse.toJsonString() generates incorrect aggregation response that doesn't match with what is in the documentation. The aggregation keys have extra prefix, e.g. lterms#, sterms#.
How can one reproduce the bug?
Execute the code below to get json serialized of search response.
This is not a bug but expected behavior, we (de)serialize aggregations following the behavior of the typed_keys parameter on the search api, this means aggregation keys are prefixed with their type so that there's no ambiguity in deserializing.
There is an existing issue #741 for adding a mechanism to disable the behavior.
What is the bug?
SearchResponse.toJsonString()
generates incorrect aggregation response that doesn't match with what is in the documentation. Theaggregation
keys have extra prefix, e.g.lterms#
,sterms#
.How can one reproduce the bug?
Execute the code below to get json serialized of search response.
The output is
What is the expected behavior?
Aggregation keys should not have other prefix according to the document: https://opensearch.org/docs/latest/aggregations/
What is your host/environment?
opensearch-java 2.17.0
The text was updated successfully, but these errors were encountered: