Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.1
    • Fix Version/s: 2.4
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Returns the equivalent of IndexReader.getVersion for IndexCommit

      public abstract long getVersion();
      
      1. LUCENE-1288.patch
        6 kB
        Michael McCandless

        Activity

        Hide
        mikemccand Michael McCandless added a comment -

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

        Show
        mikemccand Michael McCandless added a comment - Attached patch. I plan to commit in a day or two.
        Hide
        mikemccand Michael McCandless added a comment -

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

        Show
        mikemccand Michael McCandless added a comment - OK I'll do both. Yes, getVersion() will be the same as IndexReader.getVersion() if that reader was opened on the same commit point.
        Hide
        jasonrutherglen Jason Rutherglen added a comment -

        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.

        Show
        jasonrutherglen Jason Rutherglen added a comment - 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.
        Hide
        mikemccand Michael McCandless added a comment -

        Are you suggesting instead or in addition to getVersion?

        Show
        mikemccand Michael McCandless added a comment - Are you suggesting instead or in addition to getVersion?
        Hide
        jasonrutherglen Jason Rutherglen added a comment -

        Probably best to add getGeneration method

        Show
        jasonrutherglen Jason Rutherglen added a comment - Probably best to add getGeneration method

          People

          • Assignee:
            mikemccand Michael McCandless
            Reporter:
            jasonrutherglen Jason Rutherglen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development