corpus_length is now a property of iindex