public interface CollectorManager<C extends Collector,T>
C newCollector() throws IOException
Collector. This must return a different instance on each call.
T reduce(Collection<C> collectors) throws IOException
TopDocsCollectorwould compute the
top docsof each collector and then merge them using
TopDocs.merge(int, TopDocs). This method must be called after collection is finished on all provided collectors.
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.