ruflin/Elastica — pull request #249 by foufos (2012-09-07 10:30:42+00:00)
Title: Document Routing and Version Type

I finaly fixed the Document Routing.
Added setRouting and getRouting to index the document with a specific index.

Please note.
Many times, the routing value is not known when deleting a document. For those cases, when specifying the _routing mapping as required, and no routing value is specified, the delete will be broadcasted automatically to all shards.
( http://www.elasticsearch.org/guide/reference/api/delete.html )

Also added version type support for custom versioning.
getVersionType and setVersionType

http://www.elasticsearch.org/guide/reference/api/index_.html