ruflin/Elastica — pull request #376 by lsmith77 (2013-04-26 12:40:51+00:00)
Title: [WIP] added an interface that entities can implement

this is just an idea ..
the ``getElasticaId`` method on the interface makes it possible to skip passing in a document instance just to customize the ID. the other two are just additional ideas that i have not explored yet in detail. the theory would be having the idea to just add a bunch of objects that know themselves in which index and type they should be put.

however i wonder if it wouldnt be better to have some configuration here. ie. the ability to define a mapping of entity class names to an array defining a method to use to get the id, the index and type.