Class TermFirstPassGroupingCollector
Concrete implementation of AbstractFirstPassGroupingCollector<TGroupValue> that groups based on
field values and more specifically uses Sorted
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inheritance
System.Object
AbstractFirstPassGroupingCollector <Lucene.Net.Util.BytesRef >
TermFirstPassGroupingCollector
Implements
IAbstractFirstPassGroupingCollector <Lucene.Net.Util.BytesRef >
Lucene.Net.Search.ICollector
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.Terms
Assembly: Lucene.Net.Grouping.dll
Syntax
public class TermFirstPassGroupingCollector : AbstractFirstPassGroupingCollector<BytesRef>, IAbstractFirstPassGroupingCollector<BytesRef>, ICollector
Constructors
| Improve this Doc View SourceTermFirstPassGroupingCollector(String, Sort, Int32)
Create the first pass collector.
Declaration
public TermFirstPassGroupingCollector(string groupField, Sort groupSort, int topNGroups)
Parameters
Type | Name | Description |
---|---|---|
System. |
groupField | The field used to group
documents. This field must be single-valued and
indexed (Field |
Lucene. |
groupSort | The Lucene. |
System. |
topNGroups | How many top groups to keep. |
Exceptions
Type | Condition |
---|---|
System. |
When I/O related errors occur |
Methods
| Improve this Doc View SourceCopyDocGroupValue(BytesRef, BytesRef)
Declaration
protected override BytesRef CopyDocGroupValue(BytesRef groupValue, BytesRef reuse)
Parameters
Type | Name | Description |
---|---|---|
Lucene. |
groupValue | |
Lucene. |
reuse |
Returns
Type | Description |
---|---|
Lucene. |
Overrides
Lucene.Net.Search.Grouping.AbstractFirstPassGroupingCollector<Lucene.Net.Util.BytesRef>.CopyDocGroupValue(Lucene.Net.Util.BytesRef, Lucene.Net.Util.BytesRef)
|
Improve this Doc
View Source
GetDocGroupValue(Int32)
Declaration
protected override BytesRef GetDocGroupValue(int doc)
Parameters
Type | Name | Description |
---|---|---|
System. |
doc |
Returns
Type | Description |
---|---|
Lucene. |
Overrides
Lucene.Net.Search.Grouping.AbstractFirstPassGroupingCollector<Lucene.Net.Util.BytesRef>.GetDocGroupValue(System.Int32)
|
Improve this Doc
View Source
SetNextReader(AtomicReaderContext)
Declaration
public override void SetNextReader(AtomicReaderContext context)
Parameters
Type | Name | Description |
---|---|---|
Lucene. |
context |
Overrides
Lucene.Net.Search.Grouping.AbstractFirstPassGroupingCollector<Lucene.Net.Util.BytesRef>.SetNextReader(Lucene.Net.Index.AtomicReaderContext)
Implements
Lucene.Net.Search.ICollector