elasticsearch/elasticsearch-php — pull request #120 by tlemburg (2014-08-12 19:10:39+00:00)
Title: Documentation error on bulk indexing.

The example uses the 'doc' parameter on bulk indexing, which is inconsistent with how the bulk API expects JSON documents to be passed in, and is thus incorrect. It essentially puts all the data under a 'doc' property. Only the update action supports the 'doc' parameter.

I struggled with this for quite some time before realizing the problem :)