Elasticsearch _cat/indices 出错?
Elasticsearch _cat/indices is giving error?
目前我正在使用 elasticsearch helper scan api,但它无法获取数据。
命令:
helpers.scan(
client=client,
query={"query":{"match_all":{}}},
scroll='10m',
index="debug",
doc_type = "tool",
_source=True
)
输出:
......
generator object scan at 0x1556640
generator object scan at 0x1556640
generator object scan at 0x1556640
generator object scan at 0x1556640
generator object scan at 0x1556640
.......
当我在做的时候
curl -XGET"http://localhost:9200/debug/tool/_search?pretty=true&q=*:*"
(默认只有10个)
它能够获取数据。
当我使用此命令检查索引时挖掘弹性后:
http://127.0.0.1:9200/_cat/indices
我发现了这个:No handler found for uri [/_cat/indices] and method [GET]
但是当我使用 http://localhost:9200/_aliases
时,我可以看到我的索引。为什么当我 运行 _cat/indices
命令时索引没有出现?
_cat/indices
在1.0.x.
之后的ES版本中可用
目前我正在使用 elasticsearch helper scan api,但它无法获取数据。
命令:
helpers.scan(
client=client,
query={"query":{"match_all":{}}},
scroll='10m',
index="debug",
doc_type = "tool",
_source=True
)
输出:
......
generator object scan at 0x1556640
generator object scan at 0x1556640
generator object scan at 0x1556640
generator object scan at 0x1556640
generator object scan at 0x1556640
.......
当我在做的时候
curl -XGET"http://localhost:9200/debug/tool/_search?pretty=true&q=*:*"
(默认只有10个) 它能够获取数据。
当我使用此命令检查索引时挖掘弹性后:
http://127.0.0.1:9200/_cat/indices
我发现了这个:No handler found for uri [/_cat/indices] and method [GET]
但是当我使用 http://localhost:9200/_aliases
时,我可以看到我的索引。为什么当我 运行 _cat/indices
命令时索引没有出现?
_cat/indices
在1.0.x.