lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Smith (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENE-1735) IndexReader.reopen() does not retain TermInfosIndexDivisor setting for newly opened segments
Date Mon, 06 Jul 2009 21:11:14 GMT
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message