Constructor BlockGroupingCollector
BlockGroupingCollector(Sort, Int32, Boolean, Filter)
Create the single pass collector.
Declaration
public BlockGroupingCollector(Sort groupSort, int topNGroups, bool needsScores, Filter lastDocPerGroup)
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 RELEVANCE. |
System.Int32 | topNGroups | How many top groups to keep. |
System.Boolean | needsScores | true if the collected documents require scores, either because relevance is included in the withinGroupSort or because you plan to pass true for either GetScores or GetMaxScores to GetTopGroups(Sort, Int32, Int32, Int32, Boolean) |
Filter | lastDocPerGroup | a Filter that marks the last document in each group. |