# BulkRequestBuilder and UpdateRequest (Java API)

**URL:** <https://discuss.elastic.co/t/bulkrequestbuilder-and-updaterequest-java-api/7075>\
**Category:** Elasticsearch\
**Created:** [March 20, 2012, 7:05pm UTC](https://discuss.elastic.co/t/bulkrequestbuilder-and-updaterequest-java-api/7075 "2012-03-20T19:05:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_Groenke](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@Nick\_Groenke](https://discuss.elastic.co/u/Nick_Groenke)\
**Post date:** [March 20, 2012, 7:05pm UTC](https://discuss.elastic.co/t/bulkrequestbuilder-and-updaterequest-java-api/7075/1 "2012-03-20T19:05:14Z")

</div>

Hi All,

I'm using BulkRequestBuilder, which has an add method for IndexRequest  
and DeleteRequest:

public BulkRequestBuilder add(IndexRequest request)  
public BulkRequestBuilder add(DeleteRequest request)

I would like to be able to add UpdateRequest. Is this something I can  
do with the add method that accepts byte[]? If so, could someone point  
me in the right direction? Otherwise, are there plans to provide a  
method to add UpdateRequests?

Thanks!  
Nick Groenke

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 20, 2012, 8:12pm UTC](https://discuss.elastic.co/t/bulkrequestbuilder-and-updaterequest-java-api/7075/2 "2012-03-20T20:12:36Z")

</div>

Bulk API does not support update requests currently, just index and delete.

On Tue, Mar 20, 2012 at 9:05 PM, Nick Groenke [ngroenke@gmail.com](mailto:ngroenke@gmail.com) wrote:

> Hi All,
> 
> I'm using BulkRequestBuilder, which has an add method for IndexRequest  
> and DeleteRequest:
> 
> public BulkRequestBuilder add(IndexRequest request)  
> public BulkRequestBuilder add(DeleteRequest request)
> 
> I would like to be able to add UpdateRequest. Is this something I can  
> do with the add method that accepts byte? If so, could someone point  
> me in the right direction? Otherwise, are there plans to provide a  
> method to add UpdateRequests?
> 
> Thanks!  
> Nick Groenke

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:35am UTC](https://discuss.elastic.co/t/bulkrequestbuilder-and-updaterequest-java-api/7075/3 "2017-07-06T03:35:25Z")

</div>

Closed on July 6, 2017, 3:35am UTC


