Constructor EarlyTerminatingSortingCollector
EarlyTerminatingSortingCollector(ICollector, Sort, Int32)
Create a new EarlyTerminatingSortingCollector instance.
Declaration
public EarlyTerminatingSortingCollector(ICollector in, Sort sort, int numDocsToCollect)
Parameters
Type | Name | Description |
---|---|---|
ICollector | in | the collector to wrap |
Sort | sort | the sort you are sorting the search results on |
System.Int32 | numDocsToCollect | the number of documents to collect on each segment. When wrapping a TopDocsCollector<T>, this number should be the number of hits. |