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

Reduce specialization in TopFieldCollector

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Patch Available
    • Minor
    • Resolution: Fixed
    • None
    • 6.5, 7.0
    • None
    • None
    • New

    Description

      TopFieldCollector optimizes the single-comparator case. I think we could replace this specialization with a MultiLeafFieldComparator wrapper, similarly to how MultiCollector works. This would have the benefit of replacing code duplication of non-trivial logic with a simple wrapper that delegates calls to its sub comparators.

      Attachments

        1. LUCENE-7716.patch
          14 kB
          Adrien Grand

        Activity

          People

            Unassigned Unassigned
            jpountz Adrien Grand
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: