-
Notifications
You must be signed in to change notification settings - Fork 263
jakarta.json.stream.JsonParsingException: Property name 'key' is not in the 'type#name' format. Make sure the request has 'typed_keys' set. #358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm seeing the same exception too. Did you find a solution to this? |
I am getting same exception in Java API client ver. 8.11.3, java 8 also. I am using Elasticsearch Search application and searching using SearchApplicationSearchRequest. The search function of ElasticearchApplicationClient gives this exception. It fails to parse the aggretion in response. Same API works properly in ES Dev tools. POST _application/search_application/my-app/_search |
Hello and thanks for the report. I tried reproducing this issue using @am-thete could you please provide a snippet of the java code that is failing? Thank you! |
Hello, There was existing issue #306 and #316. As per comments in issues, this is fixed #316 and code is already merged. I tried to solution mentioned in https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/serialize-without-typed-keys.html as well but no luck. The difference I have is I am using ElasticsearchSearchApplicationSearch, SearchApplicationSearchRequest and SearchApplicationSearchResponse to search document against my SearchApplication. Here is code snippet // ElasticsearchSearchApplication // Create the transport with a Jackson mapper ElasticsearchSearchApplicationClient esSearchClient = new ElasticsearchSearchApplicationClient(transport);_ // SearchApplicationsearchRequest.Builder // Create SearchApplicationSearchRequesting by adding params - Filters and facets // Perform search against SearchApplication The issue is with the Aggregation. It fails in deserializing Aggregation |
at co.elastic.clients.json.ExternallyTaggedUnion$TypedKeysDeserializer.deserializeEntry(ExternallyTaggedUnion.java:123) |
@am-thete |
Java API client version
7.16.2
Java version
11
Elasticsearch Version
7.16.2
Problem description
akarta.json.stream.JsonParsingException: Property name 'key' is not in the 'type#name' format. Make sure the request has 'typed_keys' set.
.aggregations("interactions", agg -> agg
.adjacencyMatrix(adj -> adj
.filters("gpA", q -> q
.term(tm -> tm
.field("title").
value(v -> v
.stringValue("hello")))))));
When I use adjacencyMatrix. It throws this Exception
The text was updated successfully, but these errors were encountered: