_bulk API can't create/index a document if the index is not created?


(ajsie) #1

I wanna create/index documents using the _bulk API but get this error
message:

{"error":"IndexMissingException[[google.com] missing]","status":404}

The index name is google.com. Does this mean I have to create that
index first?

If so, why is it created automatically in a single index/create
operation but not in bulk operation?


(Shay Banon) #2

It should create an index automatically, post a recreation if it doesn't.

On Tue, Jul 26, 2011 at 6:40 AM, ajsie johnny.weng.luu@gmail.com wrote:

I wanna create/index documents using the _bulk API but get this error
message:

{"error":"IndexMissingException[[google.com] missing]","status":404}

The index name is google.com. Does this mean I have to create that
index first?

If so, why is it created automatically in a single index/create
operation but not in bulk operation?


(system) #3