title: TypeError: search() got an unexpected keyword argument 'doc_type' for elastic search version 5.6
body: <p>I want to read the documents from a specific index and a specific type from elastic search. I construct the query:</p>
  
  <p><code>es.search(index="document_index, doc_type="document_type", body={"query": {"match_all": {}}})['hits']['total']</code></p>
  
  <p>I receive the error <code>TypeError: search() got an unexpected keyword argument 'doc_type'</code>. I went through a couple of links given below to look for a solution but everywhere the main answer is to downgrade the ES version. But our requirement is to keep ES version 5.6.</p>
  
  <ul>
  <li><a href="https://elasticsearch-py.readthedocs.io/en/master/" rel="noreferrer">https://elasticsearch-py.readthedocs.io/en/master/</a></li>
  <li><a href="https://towardsdatascience.com/getting-started-with-elasticsearch-in-python-c3598e718380" rel="noreferrer">https://towardsdatascience.com/getting-started-with-elasticsearch-in-python-c3598e718380</a></li>
  <li><a href="https://marcobonzanini.com/2015/02/02/how-to-query-elasticsearch-with-python/" rel="noreferrer">https://marcobonzanini.com/2015/02/02/how-to-query-elasticsearch-with-python/</a></li>
  </ul>
  
  <p>and a couple of more</p>
  
  <p>Is there an alternative to mention the document type?</p>