Show / Hide Table of Contents

    Class FunctionAllGroupsCollector

    A collector that collects all groups that match the query. Only the group value is collected, and the order is undefined. This collector does not determine the most relevant document of a group.

    Implementation detail: Uses ValueSource and FunctionValues to retrieve the field values to group by.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.Object
    AbstractAllGroupsCollector<MutableValue>
    FunctionAllGroupsCollector
    Implements
    IAbstractAllGroupsCollector<MutableValue>
    ICollector
    Inherited Members
    AbstractAllGroupsCollector<MutableValue>.GroupCount
    AbstractAllGroupsCollector<MutableValue>.SetScorer(Scorer)
    AbstractAllGroupsCollector<MutableValue>.AcceptsDocsOutOfOrder
    Namespace: Lucene.Net.Search.Grouping.Function
    Assembly: Lucene.Net.Grouping.dll
    Syntax
    public class FunctionAllGroupsCollector : AbstractAllGroupsCollector<MutableValue>, IAbstractAllGroupsCollector<MutableValue>, ICollector

    Constructors

    | Improve this Doc View Source

    FunctionAllGroupsCollector(ValueSource, IDictionary)

    Constructs a FunctionAllGroupsCollector instance.

    Declaration
    public FunctionAllGroupsCollector(ValueSource groupBy, IDictionary vsContext)
    Parameters
    Type Name Description
    ValueSource groupBy

    The ValueSource to group by

    IDictionary vsContext

    The ValueSource context

    Properties

    | Improve this Doc View Source

    Groups

    Declaration
    public override IEnumerable<MutableValue> Groups { get; }
    Property Value
    Type Description
    IEnumerable<MutableValue>
    Overrides
    Lucene.Net.Search.Grouping.AbstractAllGroupsCollector<Lucene.Net.Util.Mutable.MutableValue>.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.AbstractAllGroupsCollector<Lucene.Net.Util.Mutable.MutableValue>.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.AbstractAllGroupsCollector<Lucene.Net.Util.Mutable.MutableValue>.SetNextReader(Lucene.Net.Index.AtomicReaderContext)

    Implements

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