You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Tim Smith (JIRA)" <ji...@apache.org> on 2009/07/06 23:11:14 UTC

[jira] Created: (LUCENE-1735) IndexReader.reopen() does not retain TermInfosIndexDivisor setting for newly opened segments

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


[jira] Resolved: (LUCENE-1735) IndexReader.reopen() does not retain TermInfosIndexDivisor setting for newly opened segments

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael McCandless resolved LUCENE-1735.
----------------------------------------

    Resolution: Duplicate

This is a dup of LUCENE-1718.

> 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