Constructor TermFirstPassGroupingCollector
TermFirstPassGroupingCollector(String, Sort, Int32)
Create the first pass collector.
Declaration
public TermFirstPassGroupingCollector(string groupField, Sort groupSort, int topNGroups)
Parameters
Type | Name | Description |
---|---|---|
System.String | groupField | The field used to group documents. This field must be single-valued and indexed (FieldCache is used to access its value per-document). |
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. |