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 2008/03/04 13:26:40 UTC

[jira] Created: (LUCENE-1201) Add getIndexCommit method to IndexReader

Add getIndexCommit method to IndexReader
----------------------------------------

                 Key: LUCENE-1201
                 URL: https://issues.apache.org/jira/browse/LUCENE-1201
             Project: Lucene - Java
          Issue Type: New Feature
          Components: Index
    Affects Versions: 2.3, 2.2, 2.1
            Reporter: Michael McCandless
            Assignee: Michael McCandless
             Fix For: 2.4


Spinoff from this thread:

  http://markmail.org/message/bojgqfgyxkkv4fyb

I think it makes sense ask an IndexReader for the commit point it has
open.  This enables the use case described in the above thread, which
is to create a deletion policy that is able to query all open readers
for what commit points they are using, and prevent deletion of them.



-- 
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-1201) Add getIndexCommit method to IndexReader

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

Michael McCandless resolved LUCENE-1201.
----------------------------------------

    Resolution: Fixed

> Add getIndexCommit method to IndexReader
> ----------------------------------------
>
>                 Key: LUCENE-1201
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1201
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: Index
>    Affects Versions: 2.1, 2.2, 2.3
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 2.4
>
>         Attachments: LUCENE-1201.patch
>
>
> Spinoff from this thread:
>   http://markmail.org/message/bojgqfgyxkkv4fyb
> I think it makes sense ask an IndexReader for the commit point it has
> open.  This enables the use case described in the above thread, which
> is to create a deletion policy that is able to query all open readers
> for what commit points they are using, and prevent deletion of them.

-- 
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] Updated: (LUCENE-1201) Add getIndexCommit method to IndexReader

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

Michael McCandless updated LUCENE-1201:
---------------------------------------

    Attachment: LUCENE-1201.patch

Attached patch.  I plan to commit in a day or two.

I also deprecated the original interface IndexCommitPoint, and
switched to abstract base class IndexCommit instead, and added
equals() method to IndexCommit.  I also added "warning this API is
still experimental" to the javadocs too.

> Add getIndexCommit method to IndexReader
> ----------------------------------------
>
>                 Key: LUCENE-1201
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1201
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: Index
>    Affects Versions: 2.1, 2.2, 2.3
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 2.4
>
>         Attachments: LUCENE-1201.patch
>
>
> Spinoff from this thread:
>   http://markmail.org/message/bojgqfgyxkkv4fyb
> I think it makes sense ask an IndexReader for the commit point it has
> open.  This enables the use case described in the above thread, which
> is to create a deletion policy that is able to query all open readers
> for what commit points they are using, and prevent deletion of them.

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