SimpleCollector
Base Collector implementation that is used to collect all contexts.
Properties
Set the Weight that will be used to produce scorers that will feed [ ]s. This is typically useful to have access to Weight.count from .
Functions
Bulk-collect doc IDs.
Called once for every document matching a query, with the unbased document number.
Optionally returns an iterator over competitive documents.
Hook that gets called once the leaf that is associated with this collector has finished collecting successfully, including when a CollectionTerminatedException is thrown. This is typically useful to compile data that has been collected on this leaf, e.g. to convert facet counts on leaf ordinals to facet counts on global ordinals. The default implementation does nothing.
Create a new collector to collect the given context.