You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jason Rutherglen (JIRA)" <ji...@apache.org> on 2008/05/19 16:04:58 UTC

[jira] Created: (LUCENE-1288) Add getVersion method to IndexCommit

Add getVersion method to IndexCommit
------------------------------------

                 Key: LUCENE-1288
                 URL: https://issues.apache.org/jira/browse/LUCENE-1288
             Project: Lucene - Java
          Issue Type: Improvement
    Affects Versions: 2.3.1
            Reporter: Jason Rutherglen
            Priority: Minor


Returns the equivalent of IndexReader.getVersion for IndexCommit

{code}
public abstract long getVersion();
{code}

-- 
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-1288) Add getVersion method to IndexCommit

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

Michael McCandless commented on LUCENE-1288:
--------------------------------------------

OK I'll do both.  Yes, getVersion() will be the same as IndexReader.getVersion() if that reader was opened on the same commit point.

> Add getVersion method to IndexCommit
> ------------------------------------
>
>                 Key: LUCENE-1288
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1288
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: 2.3.1
>            Reporter: Jason Rutherglen
>            Assignee: Michael McCandless
>            Priority: Minor
>
> Returns the equivalent of IndexReader.getVersion for IndexCommit
> {code}
> public abstract long getVersion();
> {code}

-- 
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-1288) Add getVersion method to IndexCommit

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

Michael McCandless updated LUCENE-1288:
---------------------------------------

    Attachment: LUCENE-1288.patch

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

> Add getVersion method to IndexCommit
> ------------------------------------
>
>                 Key: LUCENE-1288
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1288
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: 2.3.1
>            Reporter: Jason Rutherglen
>            Assignee: Michael McCandless
>            Priority: Minor
>         Attachments: LUCENE-1288.patch
>
>
> Returns the equivalent of IndexReader.getVersion for IndexCommit
> {code}
> public abstract long getVersion();
> {code}

-- 
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-1288) Add getVersion method to IndexCommit

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

Michael McCandless commented on LUCENE-1288:
--------------------------------------------

Are you suggesting instead or in addition to getVersion?

> Add getVersion method to IndexCommit
> ------------------------------------
>
>                 Key: LUCENE-1288
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1288
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: 2.3.1
>            Reporter: Jason Rutherglen
>            Assignee: Michael McCandless
>            Priority: Minor
>
> Returns the equivalent of IndexReader.getVersion for IndexCommit
> {code}
> public abstract long getVersion();
> {code}

-- 
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] Assigned: (LUCENE-1288) Add getVersion method to IndexCommit

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

Michael McCandless reassigned LUCENE-1288:
------------------------------------------

    Assignee: Michael McCandless

> Add getVersion method to IndexCommit
> ------------------------------------
>
>                 Key: LUCENE-1288
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1288
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: 2.3.1
>            Reporter: Jason Rutherglen
>            Assignee: Michael McCandless
>            Priority: Minor
>
> Returns the equivalent of IndexReader.getVersion for IndexCommit
> {code}
> public abstract long getVersion();
> {code}

-- 
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-1288) Add getVersion method to IndexCommit

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

Michael McCandless resolved LUCENE-1288.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.4

> Add getVersion method to IndexCommit
> ------------------------------------
>
>                 Key: LUCENE-1288
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1288
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: 2.3.1
>            Reporter: Jason Rutherglen
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 2.4
>
>         Attachments: LUCENE-1288.patch
>
>
> Returns the equivalent of IndexReader.getVersion for IndexCommit
> {code}
> public abstract long getVersion();
> {code}

-- 
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-1288) Add getVersion method to IndexCommit

Posted by "Jason Rutherglen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598263#action_12598263 ] 

Jason Rutherglen commented on LUCENE-1288:
------------------------------------------

getGeneration in addition.  

Will IndexCommit.getVersion return the same value as the IndexReader that created it?  I'm using this in conjunction with IndexReader to close an object associated with the IndexReader upon deletion of the snapshot.  

> Add getVersion method to IndexCommit
> ------------------------------------
>
>                 Key: LUCENE-1288
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1288
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: 2.3.1
>            Reporter: Jason Rutherglen
>            Assignee: Michael McCandless
>            Priority: Minor
>
> Returns the equivalent of IndexReader.getVersion for IndexCommit
> {code}
> public abstract long getVersion();
> {code}

-- 
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-1288) Add getVersion method to IndexCommit

Posted by "Jason Rutherglen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598140#action_12598140 ] 

Jason Rutherglen commented on LUCENE-1288:
------------------------------------------

Probably best to add getGeneration method

> Add getVersion method to IndexCommit
> ------------------------------------
>
>                 Key: LUCENE-1288
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1288
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: 2.3.1
>            Reporter: Jason Rutherglen
>            Assignee: Michael McCandless
>            Priority: Minor
>
> Returns the equivalent of IndexReader.getVersion for IndexCommit
> {code}
> public abstract long getVersion();
> {code}

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