Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SuggestWordFrequencyComparer

    Frequency first, then score.

    Inheritance
    object
    SuggestWordFrequencyComparer
    Implements
    IComparer<SuggestWord>
    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.Spell
    Assembly: Lucene.Net.Suggest.dll
    Syntax
    public class SuggestWordFrequencyComparer : IComparer<SuggestWord>

    Constructors

    SuggestWordFrequencyComparer()

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

    Declaration
    public SuggestWordFrequencyComparer()

    Methods

    Compare(SuggestWord, SuggestWord)

    Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

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

    A signed integer that indicates the relative values of x and y, as shown in the following table.

    Value Meaning
    Less than zerox is less than y.
    Zerox equals y.
    Greater than zerox is greater than y.

    Implements

    IComparer<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.