再次执行查询,结果如下,响应正常 14:28:22.824 [main] DEBUG org.elasticsearch.client.RestClient - request [POST http://localhost:9200/index_blog1/_search?typed_keys=true&max_concurrent_shard_requests=5&ignore_unavailable=false&expand_wildcards=open&allow_no_indices=true&ignore_throttled=true&search...
client.ResponseException: method [POST], host [https://localhost:9200], URI [/index_name/_search?typed_keys=true&ignore_unavailable=false&expand_wildcards=open&allow_no_indices=true&ignore_throttled=true&search_type=query_then_fetch&batched_reduce_size=512&ccs_minimize_roundtrips=true], status ...
pre_filter_shard_size=128&typed_keys=true&max_concurrent_shard_requests=5&ignore_unavailable=false&expand_wildcards=open&allow_no_indices=true&ignore_throttled=true&search_type=dfs_query_then_fetch&batched_reduce_size=512&ccs_minimize_roundtrips=truewithparameters:2020-05-0710:43:33.731TRACE45956-...
https://discuss.elastic.co/t/nosuchmethoderror-for-org-elasticsearch-action-support-indicesoptions-ignorethrottled/195440/3 https://stackoverflow.com/questions/53610891/elasticsearch-java-client-initialization-fails Member wu-sheng commented May 27, 2020 @lanlin You are asking at the wrong place. Your...
我简单地解决了这个问题,将选项添加到Logback的.properties中,如下所示;
NoSuchMethodError: org.elasticsearch.action.support.IndicesOptions.ignoreThrottled()Z $Params.withIndicesOptions(RequestConverters.java:942) at org.elasticsearch.client.IndicesRequestConverters.indicesExist...(IndicesRequestConverters.java:467) at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest.....
pre_filter_shard_size=128&typed_keys=true&max_concurrent_shard_requests=5&ignore_unavailable=false&expand_wildcards=open&allow_no_indices=true&ignore_throttled=true&search_type=dfs_query_then_fetch&batched_reduce_size=512&ccs_minimize_roundtrips=true with parameters:...
这个可以通过DeleteByQueryRequest来实现,实例代码如下 /** * 批量删除文档 * @throws ...