Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-15986

CommitUpdateCommand and SplitIndexCommand can write user commit metadata

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.1
    • None
    • None

    Description

      Even if it is possible in Lucene to store user custom metadata (string key-value pairs) in each commit, Solr CommitUpdateCommand does not support that.
      Internally SolrIndexWriter.setCommitData sets commit time and commit command version, but it does not support writing user data.

      The idea here is to add a commitData field in CommitUpdateCommand, which would be stored in SolrIndexWriter.setCommitData. Later, the commit data can be retrieved with SegmentInfos.readLatestCommit(dir).getUserData().

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              broustant Bruno Roustant
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m