elasticsearch/elasticsearch — pull request #8506 by markharwood (2014-11-17 16:22:02+00:00)
Title: Bulk indexing issue - missing parent routing causes NullPointerException

Now each error is reported in bulk response rather than causing entire bulk to fail.
Added a Junit test but the use of TransportClient means the error is manifested differently to a REST based request - instead of a NullPointer the whole of the bulk request failed with a RoutingMissingException. Changed TransportBulkAction to catch this exception and treat it the same as the existing logic for a ElasticsearchParseException - the individual bulk request items are flagged and reported individually rather than failing the whole bulk request.

Closes #8365