continued refactoring of IndexedCorpus (used by reverse index)