_bulk API change in 0.12.0 release?


(ruflin-2) #1

Hi kimchy

First, thanks for the 0.12.0 release. Has something change in the
_bulk API? The
same code that works in 0.11.0 throws now some errors with 0.12.0

ActionRequestValidationException[Validation Failed: 1: index is
missing2:
type is missing3: index is missing4: type is missing5: ...

Type and index are defined as written here:
http://www.elasticsearch.com/docs/elasticsearch/rest_api/bulk/

Nicolas


(Shay Banon) #2

Yes, the bulk API changed, here are the details:
http://github.com/elasticsearch/elasticsearch/issues/closed#issue/421.

On Tue, Oct 19, 2010 at 3:23 PM, ruflin ruflin@gmail.com wrote:

Hi kimchy

First, thanks for the 0.12.0 release. Has something change in the
_bulk API? The
same code that works in 0.11.0 throws now some errors with 0.12.0

ActionRequestValidationException[Validation Failed: 1: index is
missing2:
type is missing3: index is missing4: type is missing5: ...

Type and index are defined as written here:
http://www.elasticsearch.com/docs/elasticsearch/rest_api/bulk/

Nicolas


(ruflin-2) #3

This solved the problem. Thanks.

On Oct 19, 3:24 pm, Shay Banon shay.ba...@elasticsearch.com wrote:

Yes, the bulk API changed, here are the details:http://github.com/elasticsearch/elasticsearch/issues/closed#issue/421.

On Tue, Oct 19, 2010 at 3:23 PM, ruflin ruf...@gmail.com wrote:

Hi kimchy

First, thanks for the 0.12.0 release. Has something change in the
_bulk API? The
same code that works in 0.11.0 throws now some errors with 0.12.0

ActionRequestValidationException[Validation Failed: 1: index is
missing2:
type is missing3: index is missing4: type is missing5: ...

Type and index are defined as written here:
http://www.elasticsearch.com/docs/elasticsearch/rest_api/bulk/

Nicolas


(system) #4