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

[jira] Created: (LUCENE-1718) IndexReader.setTermInfosIndexDivisor doesn't carry over to reopened readers

IndexReader.setTermInfosIndexDivisor doesn't carry over to reopened readers
---------------------------------------------------------------------------

                 Key: LUCENE-1718
                 URL: https://issues.apache.org/jira/browse/LUCENE-1718
             Project: Lucene - Java
          Issue Type: Bug
          Components: Index
            Reporter: Michael McCandless
            Assignee: Michael McCandless
             Fix For: 2.9


When you reopen a reader, some segments are shared (and thus properly inherit the index divisor) but others are newly opened and use the default index divisor.  You then have no way to change the index divisor of those newly opened ones.  The only workaround is to not use reopen (always open a new reader).

I'd like to make termInfosDivisor an up-front param to IndexReader, anyway, for LUCENE-1609, so likely I'll fix both of these issues there.

-- 
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] Commented: (LUCENE-1718) IndexReader.setTermInfosIndexDivisor doesn't carry over to reopened readers

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12727792#action_12727792 ] 

Michael McCandless commented on LUCENE-1718:
--------------------------------------------

Thanks Tim.  This should be fixed with LUCENE-1609: DirectoryReader now holds onto the termInfosIndexDivisor and passes it when opening new SegmentReaders during reopen.

> IndexReader.setTermInfosIndexDivisor doesn't carry over to reopened readers
> ---------------------------------------------------------------------------
>
>                 Key: LUCENE-1718
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1718
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 2.9
>
>
> When you reopen a reader, some segments are shared (and thus properly inherit the index divisor) but others are newly opened and use the default index divisor.  You then have no way to change the index divisor of those newly opened ones.  The only workaround is to not use reopen (always open a new reader).
> I'd like to make termInfosDivisor an up-front param to IndexReader, anyway, for LUCENE-1609, so likely I'll fix both of these issues there.

-- 
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-1718) IndexReader.setTermInfosIndexDivisor doesn't carry over to reopened readers

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

Michael McCandless resolved LUCENE-1718.
----------------------------------------

    Resolution: Fixed

Fixed with LUCENE-1609.

> IndexReader.setTermInfosIndexDivisor doesn't carry over to reopened readers
> ---------------------------------------------------------------------------
>
>                 Key: LUCENE-1718
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1718
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 2.9
>
>
> When you reopen a reader, some segments are shared (and thus properly inherit the index divisor) but others are newly opened and use the default index divisor.  You then have no way to change the index divisor of those newly opened ones.  The only workaround is to not use reopen (always open a new reader).
> I'd like to make termInfosDivisor an up-front param to IndexReader, anyway, for LUCENE-1609, so likely I'll fix both of these issues there.

-- 
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] Commented: (LUCENE-1718) IndexReader.setTermInfosIndexDivisor doesn't carry over to reopened readers

Posted by "Tim Smith (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12727791#action_12727791 ] 

Tim Smith commented on LUCENE-1718:
-----------------------------------

perfect

i had checked your last patch on LUCENE-1609 and hadn't seen any explicit handling of this situation yet, so just wanted to call it out

> IndexReader.setTermInfosIndexDivisor doesn't carry over to reopened readers
> ---------------------------------------------------------------------------
>
>                 Key: LUCENE-1718
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1718
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 2.9
>
>
> When you reopen a reader, some segments are shared (and thus properly inherit the index divisor) but others are newly opened and use the default index divisor.  You then have no way to change the index divisor of those newly opened ones.  The only workaround is to not use reopen (always open a new reader).
> I'd like to make termInfosDivisor an up-front param to IndexReader, anyway, for LUCENE-1609, so likely I'll fix both of these issues there.

-- 
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