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

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

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View in Thread


     [ 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@...
For additional commands, e-mail: java-dev-help@...

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