Show / Hide Table of Contents

    Class SearchGroup

    LUCENENET specific class used to nest types to mimic the syntax used by Lucene (that is, without specifying the generic closing type of SearchGroup<TGroupValue>)

    Inheritance
    System.Object
    SearchGroup
    Namespace: Lucene.Net.Search.Grouping
    Assembly: Lucene.Net.Grouping.dll
    Syntax
    public class SearchGroup : object

    Methods

    | Improve this Doc View Source

    Merge<T>(IList<IEnumerable<ISearchGroup<T>>>, Int32, Int32, Sort)

    Merges multiple collections of top groups, for example obtained from separate index shards. The provided groupSort must match how the groups were sorted, and the provided SearchGroups must have been computed with fillFields=true passed to GetTopGroups(Int32, Boolean).

    NOTE: this returns null if the topGroups is empty.

    Declaration
    public static ICollection<SearchGroup<T>> Merge<T>(IList<IEnumerable<ISearchGroup<T>>> topGroups, int offset, int topN, Sort groupSort)
    Parameters
    Type Name Description
    IList<IEnumerable<ISearchGroup<T>>> topGroups
    System.Int32 offset
    System.Int32 topN
    Sort groupSort
    Returns
    Type Description
    ICollection<SearchGroup<T>>
    Type Parameters
    Name Description
    T
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)