title: How to handle multiple updates / deletes with Elasticsearch?
body: <p>I need to update or delete several documents.</p>
  
  <p>When I update I do this:</p>
  
  <ol>
  <li>I first search for the documents, setting a greater limit for the returned results (let’s say, size: 10000).</li>
  <li>For each of the returned documents, I modify certain values.</li>
  <li>I resent to elasticsearch the whole modified list (bulk index).</li>
  </ol>
  
  <p>This operation takes place until point 1 no longer returns results.</p>
  
  <p>When I delete I do this:</p>
  
  <ol>
  <li>I first search for the documents, setting a greater limit for the returned results (let’s say, size: 10000)</li>
  <li>I delete every found document sending to elasticsearch _id document (10000 requests)</li>
  </ol>
  
  <p>This operation repeats until point 1 no longer returns results.</p>
  
  <p>Is this the right way to make an update? </p>
  
  <p>When I delete, is there a way I can send several ids to delete multiple documents at once?</p>