Что такое ElasticsearchStatusException и 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 [http://HOST_NAME:PORT], 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]
Это то, что я получаю при попытке запустить мой код JavaSpring,
ERROR 26299 --- [ main] .d.e.r.s.AbstractElasticsearchRepository : failed to load elasticsearch nodes : ElasticsearchStatusException[method [HEAD], host [************] ...............
Версия ElasticSearch в pom. xml : 6.8.1 с версией Spring Data Elasticsearch: 3.2.6
Версия удаленного сервера ElasticSearch: 6.2.2
Я использую 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();
}
Весна Версия: 2.2.4