Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Interface IAbstractFirstPassGroupingCollector<TGroupValue>

    LUCENENET specific interface used to apply covariance to TGroupValue to simulate Java's wildcard generics.

    Inherited Members
    ICollector.SetScorer(Scorer)
    ICollector.Collect(int)
    ICollector.SetNextReader(AtomicReaderContext)
    ICollector.AcceptsDocsOutOfOrder
    Namespace: Lucene.Net.Search.Grouping
    Assembly: Lucene.Net.Grouping.dll
    Syntax
    public interface IAbstractFirstPassGroupingCollector<out TGroupValue> : ICollector
    Type Parameters
    Name Description
    TGroupValue

    Methods

    GetTopGroups(int, bool)

    Returns top groups, starting from offset. This may return null, if no groups were collected, or if the number of unique groups collected is <= offset.

    Declaration
    IEnumerable<ISearchGroup<out TGroupValue>> GetTopGroups(int groupOffset, bool fillFields)
    Parameters
    Type Name Description
    int groupOffset

    The offset in the collected groups

    bool fillFields

    Whether to fill to SortValues

    Returns
    Type Description
    IEnumerable<ISearchGroup<TGroupValue>>

    top groups, starting from offset

    Remarks

    LUCENENET NOTE: We must use IEnumerable<T> rather than ICollection<T> here because we need this to be covariant

    Back to top Copyright © 2024 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.