Class SearchGroup
LUCENENET specific class used to nest types to mimic the syntax used by Lucene (that is, without specifying the generic closing type of SearchGroup<TGroupValue>)
Inherited Members
Namespace: Lucene.Net.Search.Grouping
Assembly: Lucene.Net.Grouping.dll
Syntax
public static class SearchGroup
Methods
Merge<T>(IList<IEnumerable<ISearchGroup<T>>>, int, int, Sort)
Merges multiple collections of top groups, for example
obtained from separate index shards. The provided
groupSort must match how the groups were sorted, and
the provided SearchGroups must have been computed
with fillFields=true
passed to
GetTopGroups(int, bool).
NOTE: this returns null if the topGroups is empty.
Declaration
public static ICollection<SearchGroup<T>> Merge<T>(IList<IEnumerable<ISearchGroup<T>>> topGroups, int offset, int topN, Sort groupSort)
Parameters
Type | Name | Description |
---|---|---|
IList<IEnumerable<ISearchGroup<T>>> | topGroups | |
int | offset | |
int | topN | |
Sort | groupSort |
Returns
Type | Description |
---|---|
ICollection<SearchGroup<T>> |
Type Parameters
Name | Description |
---|---|
T |