Bulk API item error types

Hi. I am trying to differentiate validation errors from intermittent errors from bulk index API.

So let's say I tried to index 3 documents, and one failed.. I want to retry the indexing only if it was an intermittent error (I don't know, maybe node/shard couldn't accept write at that moment or whatever) and not for errors that would always happen like validation errors

The documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html doesn't list the possible enums of errors that can happen under response items[].error.type. Where can I find the list of types?

The error.type field is the name of the exception that caused the failure (with a bit of mangling) so can basically be anything. There isn't a definitive list of exceptions that might arise from indexing.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.