Added support for updating documents in the index

This consists the async methods as well. The update script should be
provided.