Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5020

Add finish() method to DelegatingCollector

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 4.5, 6.0
    • Component/s: search
    • Labels:
      None

      Description

      This issue adds a finish() method to the DelegatingCollector class so that it can be notified when collection is complete.

      The current collect() method assumes that the delegating collector will either forward on the document or not with each call. The finish() method will allow DelegatingCollectors to have more sophisticated behavior.

      For example a Field Collapsing delegating collector could collapse the documents as the collect() method is being called. Then when the finish() method is called it could pass the collapsed documents to the delegate collectors.

      This would allow grouping to be implemented within the PostFilter framework.

        Attachments

        1. SOLR-5020.patch
          2 kB
          Joel Bernstein

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                joel.bernstein Joel Bernstein
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: