Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class TermDistinctValuesCollector

    A term based implementation of AbstractDistinctValuesCollector{TermDistinctValuesCollector.GroupCount} that relies on Lucene.Net.Index.SortedDocValues to count the distinct values per group.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Inheritance
    System.Object
    AbstractDistinctValuesCollector<TermDistinctValuesCollector.GroupCount>
    TermDistinctValuesCollector
    Implements
    IAbstractDistinctValuesCollector<TermDistinctValuesCollector.GroupCount>
    Lucene.Net.Search.ICollector
    Inherited Members
    AbstractDistinctValuesCollector<TermDistinctValuesCollector.GroupCount>.AcceptsDocsOutOfOrder
    AbstractDistinctValuesCollector<TermDistinctValuesCollector.GroupCount>.SetScorer(Scorer)
    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 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

    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 Source

    Groups

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

    Implements

    IAbstractDistinctValuesCollector<GC>
    Lucene.Net.Search.ICollector
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.