Fixed update document bug while indexing

Tested on couple of museum data sources