org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=illegal_argument_exception, reason=request [/_search] contains unrecognized parameter: [ccs_minimize_roundtrips]]
at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:177) ~[elasticsearch-7.2.0.jar:7.2.0]
at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:1721) ~[elasticsearch-rest-high-level-client-7.2.0.jar:7.2.0]
at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:1698) ~[elasticsearch-rest-high-level-client-7.2.0.jar:7.2.0]
at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1461) ~[elasticsearch-rest-high-level-client-7.2.0.jar:7.2.0]
at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1418) ~[elasticsearch-rest-high-level-client-7.2.0.jar:7.2.0]
at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1388) ~[elasticsearch-rest-high-level-client-7.2.0.jar:7.2.0]
at org.elasticsearch.client.RestHighLevelClient.search(RestHighLevelClient.java:930) ~[elasticsearch-rest-high-level-client-7.2.0.jar:7.2.0]
Im getting the same error eventhough i changed to 7.2.0 of my elastic search jar.
I saw some previous discussions, where they asked to set to null. Since this is boolean i cant set it to null. this is annoying.
My search request is
SearchRequest searchRequest = new SearchRequest();
searchRequest.source(searchSourceBuilder);
RestHighLevelClient client=elasticsearchConfig.client();
SearchResponse searchResponse = client.search(searchRequest, RequestOptions.DEFAULT);
Please help!!1