Lucene - Core
  1. Lucene - Core
  2. LUCENE-1585

Allow to control how payloads are merged

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1, 4.0-ALPHA
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      Lucene handles backwards-compatibility of its data structures by
      converting them from the old into the new formats during segment
      merging.

      Payloads are simply byte arrays in which users can store arbitrary
      data. Applications that use payloads might want to convert the format
      of their payloads in a similar fashion. Otherwise it's not easily
      possible to ever change the encoding of a payload without reindexing.

      So I propose to introduce a PayloadMerger class that the SegmentMerger
      invokes to merge the payloads from multiple segments. Users can then
      implement their own PayloadMerger to convert payloads from an old into
      a new format.

      In the future we need this kind of flexibility also for column-stride
      fields (LUCENE-1231) and flexible indexing codecs.

      In addition to that it would be nice if users could store version
      information in the segments file. E.g. they could store "in segment _2
      the term a:b uses payloads of format x.y".

      1. LUCENE-1585_3x.patch
        22 kB
        Shai Erera
      2. LUCENE-1585_3x.patch
        23 kB
        Shai Erera
      3. LUCENE-1585_3x.patch
        22 kB
        Shai Erera
      4. LUCENE-1585_3x.patch
        19 kB
        Shai Erera
      5. LUCENE-1585_3x.patch
        24 kB
        Shai Erera
      6. LUCENE-1585_trunk.patch
        24 kB
        Shai Erera
      7. LUCENE-1585_trunk.patch
        24 kB
        Shai Erera
      8. LUCENE-1585_trunk.patch
        18 kB
        Shai Erera

        Activity

        Grant Ingersoll made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12563442 ] jira [ 12584806 ]
        Mark Thomas made changes -
        Workflow jira [ 12459925 ] Default workflow, editable Closed status [ 12563442 ]
        Shai Erera made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Lucene Fields [New] [New, Patch Available]
        Resolution Fixed [ 1 ]
        Shai Erera made changes -
        Attachment LUCENE-1585_trunk.patch [ 12444467 ]
        Shai Erera made changes -
        Attachment LUCENE-1585_trunk.patch [ 12444422 ]
        Shai Erera made changes -
        Attachment LUCENE-1585_3x.patch [ 12444416 ]
        Shai Erera made changes -
        Attachment LUCENE-1585_3x.patch [ 12444142 ]
        Shai Erera made changes -
        Attachment LUCENE-1585_3x.patch [ 12444055 ]
        Shai Erera made changes -
        Attachment LUCENE-1585_3x.patch [ 12443911 ]
        Shai Erera made changes -
        Attachment LUCENE-1585_trunk.patch [ 12443858 ]
        Shai Erera made changes -
        Attachment LUCENE-1585_3x.patch [ 12443848 ]
        Shai Erera made changes -
        Fix Version/s 3.1 [ 12314822 ]
        Michael Busch made changes -
        Assignee Michael Busch [ michaelbusch ] Shai Erera [ shaie ]
        Michael Busch made changes -
        Field Original Value New Value
        Fix Version/s 3.1 [ 12314025 ]
        Michael Busch created issue -

          People

          • Assignee:
            Shai Erera
            Reporter:
            Michael Busch
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development