Class TermDistinctValuesCollector
A term based implementation of AbstractDistinctValuesCollector{TermDistinctValuesCollector.GroupCount} that relies on SortedDocValues to count the distinct values per group.
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inheritance
System.Object
TermDistinctValuesCollector
Implements
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 TermDistinctValuesCollector : AbstractDistinctValuesCollector<TermDistinctValuesCollector.GroupCount>, IAbstractDistinctValuesCollector<TermDistinctValuesCollector.GroupCount>, ICollector
Constructors
| Improve this Doc View SourceTermDistinctValuesCollector(String, String, IEnumerable<ISearchGroup<BytesRef>>)
Constructs TermDistinctValuesCollector instance.
Declaration
public TermDistinctValuesCollector(string groupField, string countField, IEnumerable<ISearchGroup<BytesRef>> groups)
Parameters
Type | Name | Description |
---|---|---|
System.String | groupField | The field to group by |
System.String | countField | The field to count distinct values for |
System.Collections.Generic.IEnumerable<ISearchGroup<Lucene.Net.Util.BytesRef>> | groups | The top N groups, collected during the first phase search |
Properties
| Improve this Doc View SourceGroups
Declaration
public override IEnumerable<TermDistinctValuesCollector.GroupCount> Groups { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TermDistinctValuesCollector.GroupCount> |
Overrides
Lucene.Net.Search.Grouping.AbstractDistinctValuesCollector<Lucene.Net.Search.Grouping.Terms.TermDistinctValuesCollector.GroupCount>.Groups
Methods
| Improve this Doc View SourceCollect(Int32)
Declaration
public override void Collect(int doc)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | doc |
Overrides
Lucene.Net.Search.Grouping.AbstractDistinctValuesCollector<Lucene.Net.Search.Grouping.Terms.TermDistinctValuesCollector.GroupCount>.Collect(System.Int32)
|
Improve this Doc
View Source
SetNextReader(AtomicReaderContext)
Declaration
public override void SetNextReader(AtomicReaderContext context)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Index.AtomicReaderContext | context |
Overrides
Lucene.Net.Search.Grouping.AbstractDistinctValuesCollector<Lucene.Net.Search.Grouping.Terms.TermDistinctValuesCollector.GroupCount>.SetNextReader(Lucene.Net.Index.AtomicReaderContext)
Implements
Lucene.Net.Search.ICollector