• API

    Show / Hide Table of Contents

    Class SuggestWordQueue

    Sorts SuggestWord instances

    Inheritance
    System.Object
    Lucene.Net.Util.PriorityQueue<SuggestWord>
    SuggestWordQueue
    Inherited Members
    Lucene.Net.Util.PriorityQueue<Lucene.Net.Search.Spell.SuggestWord>.GetSentinelObject()
    Lucene.Net.Util.PriorityQueue<Lucene.Net.Search.Spell.SuggestWord>.Add(Lucene.Net.Search.Spell.SuggestWord)
    Lucene.Net.Util.PriorityQueue<Lucene.Net.Search.Spell.SuggestWord>.InsertWithOverflow(Lucene.Net.Search.Spell.SuggestWord)
    Lucene.Net.Util.PriorityQueue<Lucene.Net.Search.Spell.SuggestWord>.Top
    Lucene.Net.Util.PriorityQueue<Lucene.Net.Search.Spell.SuggestWord>.Pop()
    Lucene.Net.Util.PriorityQueue<Lucene.Net.Search.Spell.SuggestWord>.UpdateTop()
    Lucene.Net.Util.PriorityQueue<Lucene.Net.Search.Spell.SuggestWord>.Count
    Lucene.Net.Util.PriorityQueue<Lucene.Net.Search.Spell.SuggestWord>.Clear()
    Lucene.Net.Util.PriorityQueue<Lucene.Net.Search.Spell.SuggestWord>.HeapArray
    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 sealed class SuggestWordQueue : PriorityQueue<SuggestWord>

    Constructors

    | Improve this Doc View Source

    SuggestWordQueue(Int32)

    Use the DEFAULT_COMPARER

    Declaration
    public SuggestWordQueue(int size)
    Parameters
    Type Name Description
    System.Int32 size

    The size of the queue

    | Improve this Doc View Source

    SuggestWordQueue(Int32, IComparer<SuggestWord>)

    Specify the size of the queue and the comparer to use for sorting.

    Declaration
    public SuggestWordQueue(int size, IComparer<SuggestWord> comparer)
    Parameters
    Type Name Description
    System.Int32 size

    The size

    System.Collections.Generic.IComparer<SuggestWord> comparer

    The comparer.

    Fields

    | Improve this Doc View Source

    DEFAULT_COMPARER

    Default comparer: score then frequency.

    Declaration
    public static readonly IComparer<SuggestWord> DEFAULT_COMPARER
    Field Value
    Type Description
    System.Collections.Generic.IComparer<SuggestWord>
    See Also
    SuggestWordScoreComparer

    Methods

    | Improve this Doc View Source

    LessThan(SuggestWord, SuggestWord)

    Declaration
    protected override bool LessThan(SuggestWord wa, SuggestWord wb)
    Parameters
    Type Name Description
    SuggestWord wa
    SuggestWord wb
    Returns
    Type Description
    System.Boolean
    Overrides
    Lucene.Net.Util.PriorityQueue<Lucene.Net.Search.Spell.SuggestWord>.LessThan(Lucene.Net.Search.Spell.SuggestWord, Lucene.Net.Search.Spell.SuggestWord)

    See Also

    SuggestWordScoreComparer
    SuggestWordFrequencyComparer
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)