elasticsearch 如何在HighLevelClient中排除ignore_throttled'参数

oyt4ldly  于 2022-11-22  发布在  ElasticSearch
关注(0)|答案(1)|浏览(407)

I currently use ElasticSearch in Spring Boot. The ES version is 6.2.2 and an error occurs because an option such as ignore_throttle does not exist. When I check the library version, it is judged that the high level client 7.x version is the problem, but if I change the version to 6.2.2, an unknown error occurs and I just try to use it. Could you possibly delete the parameter?
实现'org.springframework. Boot :Spring启动器启动器数据ElasticSearch:2.1.10.RELEASE'
请求

SearchSourceBuilder sourceBuilder = new SearchSourceBuilder();
sourceBuilder.query(QueryBuilders.matchAllQuery());
searchRequest.source(sourceBuilder);
mpgws1up

mpgws1up1#

您使用的 Spring Boot 版本是否〉2.1.5

相关问题