Closes #1246 Document revisions lost when reindexing