Class TopGroups<TGroupValue>
Represents result returned by a grouping search.
Note
This API is experimental and might change in incompatible ways in the next release.
Inheritance
System.Object
TopGroups<TGroupValue>
Implements
ITopGroups <TGroupValue>
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 TopGroups<TGroupValue> : ITopGroups<TGroupValue>
Type Parameters
Name | Description |
---|---|
TGroupValue |
Constructors
| Improve this Doc View SourceTopGroups(ITopGroups<TGroupValue>, Nullable<Int32>)
Declaration
public TopGroups(ITopGroups<TGroupValue> oldTopGroups, int? totalGroupCount)
Parameters
Type | Name | Description |
---|---|---|
ITop |
oldTopGroups | |
System. |
totalGroupCount |
TopGroups(SortField[], SortField[], Int32, Int32, IGroupDocs<TGroupValue>[], Single)
Declaration
public TopGroups(SortField[] groupSort, SortField[] withinGroupSort, int totalHitCount, int totalGroupedHitCount, IGroupDocs<TGroupValue>[] groups, float maxScore)
Parameters
Type | Name | Description |
---|---|---|
Lucene. |
groupSort | |
Lucene. |
withinGroupSort | |
System. |
totalHitCount | |
System. |
totalGroupedHitCount | |
IGroup |
groups | |
System. |
maxScore |
Properties
| Improve this Doc View SourceGroups
Group results in groupSort order
Declaration
public IGroupDocs<TGroupValue>[] Groups { get; }
Property Value
Type | Description |
---|---|
IGroup |
GroupSort
How groups are sorted against each other
Declaration
public SortField[] GroupSort { get; }
Property Value
Type | Description |
---|---|
Lucene. |
MaxScore
Highest score across all hits, or
System.
Declaration
public float MaxScore { get; }
Property Value
Type | Description |
---|---|
System. |
TotalGroupCount
The total number of unique groups. If null
this value is not computed.
Declaration
public int? TotalGroupCount { get; }
Property Value
Type | Description |
---|---|
System. |
TotalGroupedHitCount
Number of documents grouped into the topN groups
Declaration
public int TotalGroupedHitCount { get; }
Property Value
Type | Description |
---|---|
System. |
TotalHitCount
Number of documents matching the search
Declaration
public int TotalHitCount { get; }
Property Value
Type | Description |
---|---|
System. |
WithinGroupSort
How docs are sorted within each group
Declaration
public SortField[] WithinGroupSort { get; }
Property Value
Type | Description |
---|---|
Lucene. |