我有查询要从 flex 搜索中获取数据
result = es.search(index="my_index", body={"size": 1000, "query": {"match_all": {}}})
print (result)
一口气我带走了所有要素但是我需要继续增加,比如说10到20、20到30这样的大小
最佳答案
使用from
参数:
result = es.search(index="my_index",
body={
"from": 10, # <---------
"size": 10,
"query": {"match_all": {}}
})
关于python - 如何获得 Elasticsearch 页面增量元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63635144/