Persist document index