title: How to do bulk update using elasticsearchOperations in Spring data elasticsearch?
body: <p>We were doing bullk insert by using bulkIndex as follow:</p>
  <pre><code>List&lt;IndexQuery&gt; indexQueries = new ArrayList&lt;&gt;();
          for (FooDocument fooDocument : fooDocuments) {
              IndexQuery query = new IndexQueryBuilder()
                      .withId(String.valueOf(fooDocument.getId()))
                      .withObject(fooDocument)
                      .build();
              indexQueries.add(query);
          }
      elasticsearchOperations.bulkIndex(indexQueries, IndexCoordinates.of(&quot;foo_index_3&quot;));
  </code></pre>
  <p>We also want to use for bulk updates something like:</p>
  <pre><code>elasticsearchOperations.bulkUpdate(updateQueries, IndexCoordinates.of(&quot;foo_index_3&quot;));
  </code></pre>
  <p>But bulkUpdate requires list of <code>UpdateQuery</code>.I am trying to create it by doing something like:</p>
  <pre><code>List&lt;IndexQuery&gt; updateQueries = new ArrayList&lt;&gt;();
          for (FooDocument fooDocument : fooDocuments) {
              UpdateQuery updateQuery = new UpdateQueryBuilder()//which Builder class and method is required?
                      .withId(String.valueOf(fooDocument.getId()))
                      .withObject(fooDocument)
                      .build();
              updateQueries.add(query);
          }
  </code></pre>
  <p>But unlike <code>IndexQueryBuilder</code> there is no <code>UpdateQueryBuilder()</code> available, what is the correct way to build the <code>UpdateQuery</code> and which <code>Builder</code> class should we use? I am wondering whether <code>UpdateQueryBuilder</code> class has been deprecated.</p>
  <p>P.S: we are using <code>4.0.2.RELEASE</code> version of <code>spring-data-elasticsearch</code></p>