Fork me on GitHub
  • API

    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
    object
    SearchGroup
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Search.Grouping
    Assembly: Lucene.Net.Grouping.dll
    Syntax
    public static class SearchGroup

    Methods

    Merge<T>(IList<IEnumerable<ISearchGroup<T>>>, int, int, 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(int, bool).

    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
    int offset
    int topN
    Sort groupSort
    Returns
    Type Description
    ICollection<SearchGroup<T>>
    Type Parameters
    Name Description
    T
    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.