Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class FunctionFirstPassGroupingCollector<TMutableValue>

    Concrete implementation of AbstractFirstPassGroupingCollector<TGroupValue> that groups based on Lucene.Net.Queries.Function.ValueSource instances.

    Note

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

    Inheritance
    System.Object
    AbstractFirstPassGroupingCollector<TMutableValue>
    FunctionFirstPassGroupingCollector<TMutableValue>
    Implements
    IAbstractFirstPassGroupingCollector<TMutableValue>
    Lucene.Net.Search.ICollector
    Inherited Members
    AbstractFirstPassGroupingCollector<TMutableValue>.m_orderedGroups
    AbstractFirstPassGroupingCollector<TMutableValue>.GetTopGroups(Int32, Boolean)
    AbstractFirstPassGroupingCollector<TMutableValue>.SetScorer(Scorer)
    AbstractFirstPassGroupingCollector<TMutableValue>.Collect(Int32)
    AbstractFirstPassGroupingCollector<TMutableValue>.AcceptsDocsOutOfOrder
    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.Function
    Assembly: Lucene.Net.Grouping.dll
    Syntax
    public class FunctionFirstPassGroupingCollector<TMutableValue> : AbstractFirstPassGroupingCollector<TMutableValue>, IAbstractFirstPassGroupingCollector<TMutableValue>, ICollector where TMutableValue : MutableValue
    Type Parameters
    Name Description
    TMutableValue

    Constructors

    | Improve this Doc View Source

    FunctionFirstPassGroupingCollector(ValueSource, IDictionary, Sort, Int32)

    Creates a first pass collector.

    Declaration
    public FunctionFirstPassGroupingCollector(ValueSource groupByVS, IDictionary vsContext, Sort groupSort, int topNGroups)
    Parameters
    Type Name Description
    Lucene.Net.Queries.Function.ValueSource groupByVS

    The Lucene.Net.Queries.Function.ValueSource instance to group by

    System.Collections.IDictionary vsContext

    The Lucene.Net.Queries.Function.ValueSource context

    Lucene.Net.Search.Sort groupSort

    The Lucene.Net.Search.Sort used to sort the groups. The top sorted document within each group according to groupSort, determines how that group sorts against other groups. This must be non-null, ie, if you want to groupSort by relevance use RELEVANCE.

    System.Int32 topNGroups

    How many top groups to keep.

    Exceptions
    Type Condition
    System.IO.IOException

    When I/O related errors occur

    Methods

    | Improve this Doc View Source

    CopyDocGroupValue(TMutableValue, TMutableValue)

    Declaration
    protected override TMutableValue CopyDocGroupValue(TMutableValue groupValue, TMutableValue reuse)
    Parameters
    Type Name Description
    TMutableValue groupValue
    TMutableValue reuse
    Returns
    Type Description
    TMutableValue
    Overrides
    Lucene.Net.Search.Grouping.AbstractFirstPassGroupingCollector<TMutableValue>.CopyDocGroupValue(TMutableValue, TMutableValue)
    | Improve this Doc View Source

    GetDocGroupValue(Int32)

    Declaration
    protected override TMutableValue GetDocGroupValue(int doc)
    Parameters
    Type Name Description
    System.Int32 doc
    Returns
    Type Description
    TMutableValue
    Overrides
    Lucene.Net.Search.Grouping.AbstractFirstPassGroupingCollector<TMutableValue>.GetDocGroupValue(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.AbstractFirstPassGroupingCollector<TMutableValue>.SetNextReader(Lucene.Net.Index.AtomicReaderContext)

    Implements

    IAbstractFirstPassGroupingCollector<TGroupValue>
    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.