Method Merge
Merge<T>(IList<IEnumerable<ISearchGroup<T>>>, Int32, Int32, 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(Int32, Boolean).
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 |
|
System.Int32 |
offset |
|
System.Int32 |
topN |
|
Sort |
groupSort |
|
Returns
Type Parameters