IndexReader.reopen() does not retain TermInfosIndexDivisor setting for newly opened segments --------------------------------------------------------------------------------------------
Key: LUCENE-1735 URL: https://issues.apache.org/jira/browse/LUCENE-1735 Project: Lucene - Java Issue Type: Bug Components: Index Affects Versions: 2.4.1 Reporter: Tim Smith If you reopen() and IndexReader with a custom setting for TermInfosIndexDivisor, the new segments will not get the old setting for TermInfosIndexDivisor set on the IndexReader opened with IndexReader.open() Furthermore, if you call setTermInfosIndexDivisor() on the reopend index, you will likely encounter a IllegalStateException (if any segments were retained from previous index) because the old segments will have already been loaded (and will now throw an exception when trying to set the value) Suggest that either the value be propagated to newly opened segments on reopen, or DirectoryReader ignore IllegalStateException from segment readers on setTermInfosIndexDivisor() -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org