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/06/24 17:42:45 UTC

[jira] Resolved: (LUCENE-1311) Add ability to open prior commits to IndexReader

     [ https://issues.apache.org/jira/browse/LUCENE-1311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael McCandless resolved LUCENE-1311.
----------------------------------------

    Resolution: Fixed

> Add ability to open prior commits to IndexReader
> ------------------------------------------------
>
>                 Key: LUCENE-1311
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1311
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: Index
>    Affects Versions: 2.3
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 2.4
>
>         Attachments: LUCENE-1311.patch
>
>
> If you use a customized DeletionPolicy, which keeps multiple commits
> around (instead of the default which is to only preserve the most
> recent commit), it's useful to be able to list all such commits and
> then open a reader against one of these commits.
> I've added this API to list commits:
>   public static Collection IndexReader.listCommits(Directory)
> and these two new open methods to IndexReader to open a specific commit:
>   public static IndexReader open(IndexCommit)
>   public static IndexReader open(IndexCommit, IndexDeletionPolicy)
> Spinoff from here:
>   http://mail-archives.apache.org/mod_mbox/lucene-java-dev/200806.mbox/%3c85d3c3b60806161735o207a3238sa2e6c415171a8019@mail.gmail.com%3e

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