Open
Description
Hello all,
would it be possible to make the _id of Elasticsearch overridable by method? Unfortunately there are problems with gems that allows multi table inheritance (like acts_as), because model.id in elastichsearch.index_document takes the ID of the specific model - but the ID of the generic one would be necessary.
To take the first example from the Gem, we have to make sure that always the ID of Product is taken and not the one of Pen or Book. As far as I can see in the doc and in the Code line 112 there is currently no way to override _id.
To solve the problem in general I would recommend to create the possibility to implement a method _id on the model. This should override the default behavior.