Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7537

Add multi valued field support to index sorting

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 6.4, 7.0
    • core/index
    • None
    • New

    Description

      Today index sorting can be done on single valued field through the NumericDocValues (for numerics) and SortedDocValues (for strings).
      I'd like to add the ability to sort on multi valued fields. Since index sorting does not accept custom comparator we could just take the minimum value of each document for an ascending sort and the maximum value for a descending sort.
      This way we could handle all cases instead of throwing an exception during a merge when we encounter a multi valued DVs.

      Attachments

        1. LUCENE-7537.patch
          139 kB
          Jim Ferenczi
        2. LUCENE-7537.patch
          89 kB
          Jim Ferenczi
        3. LUCENE-7537.patch
          99 kB
          Jim Ferenczi
        4. LUCENE-7537.patch
          99 kB
          Jim Ferenczi
        5. LUCENE-7537.patch
          100 kB
          Jim Ferenczi

        Activity

          People

            Unassigned Unassigned
            jim.ferenczi Jim Ferenczi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment