only re-index a document if the version has changed