Lucene - Core
  1. Lucene - Core
  2. LUCENE-1382

Allow storing user data when IndexWriter.commit() is called

    Details

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

      Description

      Spinoff from here:

      http://www.mail-archive.com/java-user@lucene.apache.org/msg22303.html

      The idea is to allow optionally passing an opaque String commitUserData to the IndexWriter.commit method. This String would be stored in the segments_N file, and would be retrievable by an IndexReader. Applications could then use this to assign meaning to each commit.

      It would be nice to get this done for 2.4, but I don't think we should hold the release for it.

      1. LUCENE-1382.patch
        12 kB
        Michael McCandless

        Activity

          People

          • Assignee:
            Michael McCandless
            Reporter:
            Michael McCandless
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development