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

Add sort missing first/last ability to SortField and ValueComparator

    XMLWordPrintableJSON

    Details

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

      Description

      When SortField and ValueComparator use EntryCreators (from LUCENE-2649) they use a special sort value when the field is missing.

      This enables lucene to implement 'sort missing last' or 'sort missing first' for numeric values from the FieldCache.

        Attachments

        1. LUCENE-2671-SortMissingLast.patch
          35 kB
          Ryan McKinley
        2. LUCENE-2671-suppress-unchecked.patch
          4 kB
          Ryan McKinley
        3. LUCENE-2671-caches.patch
          13 kB
          Ryan McKinley
        4. LUCENE-2671-caches.patch
          9 kB
          Ryan McKinley
        5. LUCENE-2671.patch
          12 kB
          Yonik Seeley

          Issue Links

            Activity

              People

              • Assignee:
                ryantxu Ryan McKinley
                Reporter:
                ryantxu Ryan McKinley
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: