Added asynchronous updating of index on both document creation and
document updates