Somewhat historic reasons. It used to be IndexWriter was the only place you could define this setting (making it an index-time decision burnt into the index). The IndexReader option is a relatively newer addition that adds the flexibility to decide about memory usage whenever you open the index (giving you the luxury of not having to decide on a sensible interval setting up front)
Cheers Mark ----- Original Message ---- From: Anuj Shah <anujshahw...@gmail.com> To: java-user@lucene.apache.org Sent: Mon, 7 February, 2011 10:58:02 Subject: termInfosIndexDivisor vs termIndexInterval Hi, Is someone able to explain the purpose of both these properties. By reading the documentation I don't understand the benefit of setting the termIndexInterval on the IndexWriter. Thanks Anuj --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org