Class BestDocsDeferringCollector

All Implemented Interfaces:
Closeable, AutoCloseable,, Releasable

public class BestDocsDeferringCollector extends DeferringBucketCollector implements Releasable
A specialization of DeferringBucketCollector that collects all matches and then replays only the top scoring documents to child aggregations. The method createTopDocsCollector(int) is designed to be overridden and allows subclasses to choose a custom collector implementation for determining the top N matches.