title: How to increase the max_result_window in elasticsearch using a python script?
body: <p>I know, we can use the curl to increase the max_result_window as something like:</p>
  
  <pre><code>curl -XPUT "http://localhost:9200/index1/_settings" -d '{ "index" : { "max_result_window" : 500000} }'
  </code></pre>
  
  <p>But How do I do the same using python?</p>
  
  <p>My code</p>
  
  <pre><code>es = Elasticsearch(['http://localhost:9200'])
  
  res = es.search(index="index1", doc_type="log",size=10000, from_=0, body={ "query": {
  ....query starts
  }})
  </code></pre>
  
  <p><strong>My question is how,do I change the setting for max_result_window  here</strong>.</p>