Constructor FunctionFirstPassGroupingCollector
FunctionFirstPassGroupingCollector(ValueSource, IDictionary, Sort, Int32)
Creates a first pass collector.
Declaration
public FunctionFirstPassGroupingCollector(ValueSource groupByVS, IDictionary vsContext, Sort groupSort, int topNGroups)
Parameters
Type | Name | Description |
---|---|---|
ValueSource | groupByVS | The ValueSource instance to group by |
IDictionary | vsContext | The ValueSource context |
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 RELEVANCE. |
System.Int32 | topNGroups | How many top groups to keep. |