-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Elasticsearch 6.4.0 cannot deserialize _ignored from server response of the same version #33692
Comments
My Elastic Cloud is running version 6.4.0 and all elasticsearch Java libraries from maven is also 6.4.0 confirmed |
Also, if I am not using the provided Java client and using raw HTTP instead I can simply add a I see that in private static void addSearchRequestParams(Params params, SearchRequest searchRequest) {
params.putParam(RestSearchAction.TYPED_KEYS_PARAM, "true");
params.withRouting(searchRequest.routing());
params.withPreference(searchRequest.preference());
params.withIndicesOptions(searchRequest.indicesOptions());
params.putParam("search_type", searchRequest.searchType().name().toLowerCase(Locale.ROOT));
if (searchRequest.requestCache() != null) {
params.putParam("request_cache", Boolean.toString(searchRequest.requestCache()));
}
if (searchRequest.allowPartialSearchResults() != null) {
params.putParam("allow_partial_search_results", Boolean.toString(searchRequest.allowPartialSearchResults()));
}
params.putParam("batched_reduce_size", Integer.toString(searchRequest.getBatchedReduceSize()));
if (searchRequest.scroll() != null) {
params.putParam("scroll", searchRequest.scroll().keepAlive());
}
} Which severely limits the caller's ability to add their own params such as |
Pinging @elastic/es-core-infra |
Elasticsearch version (
bin/elasticsearch --version
): 6.4.0Plugins installed: [kibana, xpack] default Elastic Cloud
JVM version (
java -version
): Unknown (Elastic Cloud)OS version (
uname -a
if on a Unix-like system): Unknown (Elastic Cloud)Description of the problem including expected versus actual behavior:
Steps to reproduce:
This is the stacktrace:
Here is the actual String response I get:
Please include a minimal but complete recreation of the problem, including
(e.g.) index creation, mappings, settings, query etc. The easier you make for
us to reproduce it, the more likely that somebody will take the time to look at it.
It appears Elasticsearch Java Client 6.4.0 does not understand how to deserialize the
_ignored
property returned by the server (of the exact same version)Provide logs (if relevant):
The text was updated successfully, but these errors were encountered: