Constructor AbstractFirstPassGroupingCollector
AbstractFirstPassGroupingCollector(Sort, Int32)
Create the first pass collector.
Declaration
public AbstractFirstPassGroupingCollector(Sort groupSort, int topNGroups)
Parameters
Type | Name | Description |
---|---|---|
Sort | groupSort | The Sort used to sort the groups. The top sorted document within each group according to groupSort, determines how that group sorts against other groups. This must be non-null, ie, if you want to groupSort by relevance use Sort.RELEVANCE. |
System.Int32 | topNGroups | How many top groups to keep. |