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

Add sort-by-term with DocValues

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0-ALPHA
    • core/search
    • None
    • New

    Description

      There are two sorted byte[] types with DocValues (BYTES_VAR_SORTED,
      BYTES_FIXED_SORTED), so you can index this type, but you can't yet
      sort by it.

      So I added a FieldComparator just like TermOrdValComparator, except it
      pulls from the doc values instead.

      There are some small diffs, eg with doc values there are never null
      values (see LUCENE-3504).

      Attachments

        1. LUCENE-3518.patch
          46 kB
          Michael McCandless
        2. LUCENE-3518.patch
          42 kB
          Michael McCandless
        3. LUCENE-3518.patch
          36 kB
          Michael McCandless

        Issue Links

          Activity

            People

              mikemccand Michael McCandless
              mikemccand Michael McCandless
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: