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

Make index sorting a first-class citizen

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.2, 7.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Today index sorting is a very expert feature. You need to use a custom merge policy, custom collectors, etc. I would like to explore making it a first-class citizen so that:

      • the sort order could be configured on IndexWriterConfig
      • segments would record the sort order that was used to write them
      • IndexSearcher could automatically early terminate when computing top docs on a sort order that is a prefix of the sort order of a segment (and if the user is not interested in totalHits).

        Attachments

        1. LUCENE-6766.patch
          173 kB
          Adrien Grand
        2. LUCENE-6766.patch
          481 kB
          Michael McCandless
        3. LUCENE-6766.patch
          540 kB
          Michael McCandless

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jpountz Adrien Grand
              • Votes:
                3 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: