【发布时间】:2017-03-04 05:03:48
【问题描述】:
我知道,我们可以使用 curl 来增加 max_result_window,如下所示:
curl -XPUT "http://localhost:9200/index1/_settings" -d '{ "index" : { "max_result_window" : 500000} }'
但是我如何使用 python 做同样的事情呢?
我的代码
es = Elasticsearch(['http://localhost:9200'])
res = es.search(index="index1", doc_type="log",size=10000, from_=0, body={ "query": {
....query starts
}})
我的问题是如何在此处更改 max_result_window 的设置。
【问题讨论】:
标签: python elasticsearch python-2.6 elasticsearch-plugin spring-data-elasticsearch