目前我正在使用elasticsearch帮助扫描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
命令时,为什么没有索引?
发布于 2015-01-23 11:32:03
_cat/indices
在1.0.x之后在ES版本中可用。
https://stackoverflow.com/questions/28108599
复制相似问题