elasticsearch 警告:此请求访问系统索引,但在未来的主要版本中,将阻止直接访问系统索引

问题描述 投票:0回答:2

当我发送 POST 请求时,我收到警告

org.elasticsearch.client.RestClient: request [POST http://localhost:9200/_search?typed_keys=true&max_concurrent_shard_requests=5&ignore_unavailable=false&expand_wildcards=open&allow_no_indices=true&ignore_throttled=true&search_type=query_then_fetch&batched_reduce_size=512]

returned 1 warnings: [299 Elasticsearch-7.14.2-6bc13727ce758c0e943c3c21653b3da82f627f75 "this request accesses system indices: [.apm-agent-configuration, .apm-custom-link, .kibana_7.13.4_001, .kibana_task_manager_7.13.4_001, .tasks], but in a future major version, direct access to system indices will be prevented by default"]

现在,我明白系统索引将来会被隐藏,无法访问。为了不显示此警告,正确的用法或发送命令是什么?

spring-boot elasticsearch kibana
2个回答
1
投票

您使用

POST http://localhost:9200/_search
正在查询 Elasticsearch 中的 all 索引,您可能并不真正想要这样做

您最好指定要查询的索引


0
投票

你好@warkolm:你知道如何使用多重搜索(Python 的 elasticsearch-dsl API)指定要查询的索引吗?

© www.soinside.com 2019 - 2024. All rights reserved.