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>)
Inheritance
System.Object
SearchGroup
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Search.Grouping
Assembly: Lucene.Net.Grouping.dll
Syntax
public class SearchGroup
Methods
| Improve this Doc View SourceMerge<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 |
---|---|---|
System.Collections.Generic.IList<System.Collections.Generic.IEnumerable<ISearchGroup<T>>> | topGroups | |
System.Int32 | offset | |
System.Int32 | topN | |
Sort | groupSort |
Returns
Type | Description |
---|---|
System.Collections.Generic.ICollection<SearchGroup<T>> |
Type Parameters
Name | Description |
---|---|
T |