Fixed indexing bug
Fixed update document bug
Merge pull request #116 from tknandu/master

Fixed update document bug while indexing