I know we can use curl to increase max_result_window somehow like:
curl -XPUT "http://localhost:9200/index1/_settings" -d '{ "index" : { "max_result_window" : 500000} }'
But how can I do the same with python?
My code
es = Elasticsearch(['http://localhost:9200'])
res = es.search(index="index1", doc_type="log",size=10000, from_=0, body={ "query": {
....query starts
}})
My question is: how to change the max_result_window parameter here .
source
share