-
Notifications
You must be signed in to change notification settings - Fork 260
Client version 8.2.2 does not build correct search request with runtime_mappings
#298
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
runtime_mappings
runtime_mappings
Any news on this issue? Error still exists in 8.3.3. |
Also having this issue, the only difference is that I'm using withJson to build the SearchRequest object. We need to use runtime mappings, the only way to get this working for us now is to use a native client and building json manually which takes out the benefits of this library |
Looks like the type is incorrect in SearchRequest.java
It should be: I wanted to create a PR but this is generated code and can't be updated through PR |
ping @swallez |
|
Any info when this will be released? |
Java API client version
8.2.2
Java version
17.0.3
Elasticsearch Version
8.2.2
Problem description
The following code stores a document and then should do a search with a
runtime_mappings
field:The request that is sent to Elasticsearch has the following body:
Note that the
priceWithTax
property is an array, the client builder requires a list here.This request leads to an error response from the server:
Neither the documentation for runtime_fields in a search request nor for runtime_fields in a mapping specify this as an array.
The text was updated successfully, but these errors were encountered: