Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SuggestWordScoreComparer

    Score first, then frequency

    Inheritance
    System.Object
    SuggestWordScoreComparer
    Implements
    System.Collections.Generic.IComparer<SuggestWord>
    Inherited Members
    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.Spell
    Assembly: Lucene.Net.Suggest.dll
    Syntax
    [Serializable]
    public class SuggestWordScoreComparer : IComparer<SuggestWord>

    Constructors

    | Improve this Doc View Source

    SuggestWordScoreComparer()

    Creates a new comparer that will compare by Score, then by Freq, then by String.

    Declaration
    public SuggestWordScoreComparer()

    Methods

    | Improve this Doc View Source

    Compare(SuggestWord, SuggestWord)

    Declaration
    public virtual int Compare(SuggestWord first, SuggestWord second)
    Parameters
    Type Name Description
    SuggestWord first
    SuggestWord second
    Returns
    Type Description
    System.Int32

    Implements

    System.Collections.Generic.IComparer<T>
    • 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.