phillro/node-elasticsearch-client — Issue #9: .index shouldn't modify document
Author: scriby
Created: 2011-11-02 08:21:30+00:00
State: open

When calling .index, it removes the id property from the passed in document. That caught me off guard and created a subtle bug to track down.

It looks like you can save the id into a variable and add it back into the document before returning.

Chris