BulkRequestBuilder and UpdateRequest (Java API)


(Nick Groenke) #1

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


(Shay Banon) #2

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 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


(system) #3