ruflin/Elastica — pull request #734 by TroodoNmike (2014-12-17 09:20:57+00:00)
Title: making sure id is urlencoded when using updateDocument

Yesterday I tried to update existing elasticsearch document using Type class. Because all of my documents ids contain forward slashes elastica was throwing an exception and documents were not updated.

So when using:

(existing document)
$doc->getId() -> '/some/path'
$doc->getData() -> array(data here)

Then using
$type->updateDocument($doc);

Documents was not updated.

I have created a test and fix. Let me know if this is valid. Cheers

Mike