• API

    Show / Hide Table of Contents

    Class FunctionFirstPassGroupingCollector

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

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.Object
    AbstractFirstPassGroupingCollector<Lucene.Net.Util.Mutable.MutableValue>
    FunctionFirstPassGroupingCollector
    Implements
    IAbstractFirstPassGroupingCollector<Lucene.Net.Util.Mutable.MutableValue>
    Lucene.Net.Search.ICollector
    Inherited Members
    AbstractFirstPassGroupingCollector<MutableValue>.m_orderedGroups
    AbstractFirstPassGroupingCollector<MutableValue>.GetTopGroups(Int32, Boolean)
    AbstractFirstPassGroupingCollector<MutableValue>.SetScorer(Scorer)
    AbstractFirstPassGroupingCollector<MutableValue>.Collect(Int32)
    AbstractFirstPassGroupingCollector<MutableValue>.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 : AbstractFirstPassGroupingCollector<MutableValue>, IAbstractFirstPassGroupingCollector<MutableValue>, ICollector

    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(MutableValue, MutableValue)

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

    GetDocGroupValue(Int32)

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

    Implements

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