Closed powfyy closed 1 month ago
Hello! Quoting from this similar issue:
unfortunately the java client cannot deserialize aggregation results without the
typed_keys
option
As the documentation shows, disabling typed_keys
can be useful when the original response in json/string format is needed, but still, the java client cannot deserialize it.
Java API client version
8.13.2
Java version
17
Elasticsearch Version
8.12.2
Problem description
Hello. I want to disable the 'type#name' format when deserializing the response. To do this, I redefined the creation of jsonpMapper and added an attribute 'JsonpMapperFeatures.SERIALIZE_TYPED_KEYS = false', but the error did not disappear. I see https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/serialize-without-typed-keys.html
ElasticConfig:
Class with request
Logs: