aparo/pyes — pull request #371 by g-clef (2014-03-04 19:00:14+00:00)
Title: raise_on_bulk_item_failure not working with ES 1.0

From http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/_return_values.html , "ok" has been removed from all response values for ES 1.0. is_bulk_item_okay() is still checking for "ok" in the response. So, if raise_on_bulk_item_failure is set to true, pyes bulk inserts/deletes/etc are reporting as failed even if they are succeeding.

Modified is_bulk_item_okay to check for both new and old response types.