• API

    Show / Hide Table of Contents

    Class SuggestWordFrequencyComparer

    Frequency first, then score.

    Inheritance
    System.Object
    SuggestWordFrequencyComparer
    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
    public class SuggestWordFrequencyComparer : IComparer<SuggestWord>

    Constructors

    | Improve this Doc View Source

    SuggestWordFrequencyComparer()

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

    Declaration
    public SuggestWordFrequencyComparer()

    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 © 2020 Licensed to the Apache Software Foundation (ASF)