Show / Hide Table of Contents

    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
    AbstractDistinctValuesCollector<TermDistinctValuesCollector.GroupCount>
    TermDistinctValuesCollector
    Implements
    IAbstractDistinctValuesCollector<TermDistinctValuesCollector.GroupCount>
    ICollector
    Inherited Members
    AbstractDistinctValuesCollector<TermDistinctValuesCollector.GroupCount>.AcceptsDocsOutOfOrder
    AbstractDistinctValuesCollector<TermDistinctValuesCollector.GroupCount>.SetScorer(Scorer)
    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 Source

    TermDistinctValuesCollector(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

    IEnumerable<ISearchGroup<BytesRef>> groups

    The top N groups, collected during the first phase search

    Properties

    | Improve this Doc View Source

    Groups

    Declaration
    public override IEnumerable<TermDistinctValuesCollector.GroupCount> Groups { get; }
    Property Value
    Type Description
    IEnumerable<TermDistinctValuesCollector.GroupCount>
    Overrides
    Lucene.Net.Search.Grouping.AbstractDistinctValuesCollector<Lucene.Net.Search.Grouping.Terms.TermDistinctValuesCollector.GroupCount>.Groups

    Methods

    | Improve this Doc View Source

    Collect(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
    AtomicReaderContext context
    Overrides
    Lucene.Net.Search.Grouping.AbstractDistinctValuesCollector<Lucene.Net.Search.Grouping.Terms.TermDistinctValuesCollector.GroupCount>.SetNextReader(Lucene.Net.Index.AtomicReaderContext)

    Implements

    IAbstractDistinctValuesCollector<GC>
    ICollector
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)