我正在使用python客户机对ES进行一个非常简单的扫描搜索。由于某些原因,结果集将进入一个无限循环。有人能帮忙吗?在
# import
from elasticsearch import Elasticsearch
from elasticsearch.helpers import scan
es = Elasticsearch()
es.indices.create(index="analytics", ignore=400)
query = { "query": { "match_all": {} } }
result = scan(client=es, query=query, index="keywords", doc_type="eyelytics", scroll="1m")
# It goes into infinite loop here
for r in result:
print(r)
# print(result)
目前没有回答
相关问题 更多 >
编程相关推荐