Getting ElasticsearchStatusException and ElasticsearchResponseException?

What is ElasticsearchStatusException and ElasticsearchResponseException?

Caused by: org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=illegal_argument_exception, reason=request [/user_context/_refresh] contains unrecognized parameter: [ignore_throttled]] Caused by: org.elasticsearch.client.ResponseException: method [POST], host [ URI [/user_context/_refresh?ignore_throttled=false&ignore_unavailable=false&expand_wildcards=open&allow_no_indices=true], status line [HTTP/1.1 400 Bad Request] 

This is what I am getting, when trying to run my JavaSpring Code,

ERROR 26299 --- [ main] .d.e.r.s.AbstractElasticsearchRepository : failed to load elasticsearch nodes : ElasticsearchStatusException[method [HEAD], host [************] ............... 

ElasticSearch Version in pom.xml : 6.8.1 with Spring Data Elasticsearch version : 3.2.6

ElasticSearch Version of the Remote Server : 6.2.2

I am using High Level Rest Client.

 @Override @Bean public RestHighLevelClient elasticsearchClient() { final ClientConfiguration clientConfiguration = ClientConfiguration.builder() .connectedTo(elasticsearch_host + ":" + elasticsearch_port).build(); return RestClients.create(clientConfiguration).rest(); } 

Spring Version : 2.2.4

1

Related questions 0 Spring Data ElasticSearch NullPointerException 0 Elasticsearch server starts with following exception 0 Exception while querying Elasticsearch through spring-boot-starter-data-elasticsearch Related questions 0 Spring Data ElasticSearch NullPointerException 0 Elasticsearch server starts with following exception 0 Exception while querying Elasticsearch through spring-boot-starter-data-elasticsearch 1 elastic search with spring boot not work 3 Getting error in ElasticSearch 0 Elasticsearch integration with Java API and SpringBoot exception 0 Elasticsearch spring implementation error 0 Error while indexing data to elastic using java 2 Spring boot with elastic fail while index exists 0 Getting Exceptions while running a Spring boot app with elasticsearch Load 7 more related questions Show fewer related questions

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like