Class SuggestWordQueue
Sorts SuggestWord instances
Inheritance
System.Object
SuggestWordQueue
Namespace: Lucene.Net.Search.Spell
Assembly: Lucene.Net.Suggest.dll
Syntax
public sealed class SuggestWordQueue : PriorityQueue<SuggestWord>
Constructors
| Improve this Doc View SourceSuggestWordQueue(Int32)
Use the DEFAULT_COMPARER
Declaration
public SuggestWordQueue(int size)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | size | The size of the queue |
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 |
| IComparer<SuggestWord> | comparer | The comparer. |
Fields
| Improve this Doc View SourceDEFAULT_COMPARER
Default comparer: score then frequency.
Declaration
public static readonly IComparer<SuggestWord> DEFAULT_COMPARER
Field Value
| Type | Description |
|---|---|
| IComparer<SuggestWord> |
See Also
Methods
| Improve this Doc View SourceLessThan(SuggestWord, SuggestWord)
Declaration
protected override bool LessThan(SuggestWord wa, SuggestWord wb)
Parameters
| Type | Name | Description |
|---|---|---|
| SuggestWord | wa | |
| SuggestWord | wb |
Returns
| Type | Description |
|---|---|
| System.Boolean |