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

TopDocsCollector should be abstract super class that is the real "TopDocsCollector" contract, a subclass should implement the priority-queue logic. e.g. PQTopDocsCollector

    Details

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

      Description

      TopDocsCollector is both an abstract interface for producing TopDocs as well as a PriorityQueue based implementation.
      Not all Collectors that could produce TopDocs must use a PriorityQueue, and it would be advantageous to allow the TopDocsCollector to be an "interface" type abstract class, with a PQTopDocsCollector sub-class.
      While doing this, it'd be good to clean up the generics uses in these classes. As it's odd to create a TopFieldCollector and have to case the TopDocs object, when this can be fixed with generics.

        Attachments

        1. LUCENE-2542.patch
          3 kB
          Woody Anderson
        2. LUCENE-2542.patch
          5 kB
          Woody Anderson
        3. LUCENE-2542.patch
          38 kB
          Woody Anderson
        4. LUCENE_3.0.2-2542.patch
          35 kB
          Woody Anderson

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              woody.anderson@gmail.com Woody Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: