Class DirectSpellChecker.ScoreTerm
Holds a spelling correction for internal usage inside DirectSpellChecker.
Inheritance
System.Object
DirectSpellChecker.ScoreTerm
Implements
System.IComparable<DirectSpellChecker.ScoreTerm>
Inherited Members
System.Object.Equals(System.Object, System.Object)
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
protected class ScoreTerm : IComparable<DirectSpellChecker.ScoreTerm>
Constructors
| Improve this Doc View SourceScoreTerm()
Constructor.
Declaration
public ScoreTerm()
Properties
| Improve this Doc View SourceBoost
The boost representing the similarity from the FuzzyTermsEnum (internal similarity score)
Declaration
public float Boost { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Docfreq
The df of the spellcheck correction.
Declaration
public int Docfreq { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Score
The similarity score.
Declaration
public float Score { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Term
The actual spellcheck correction.
Declaration
public BytesRef Term { get; set; }
Property Value
Type | Description |
---|---|
BytesRef |
TermAsString
The spellcheck correction represented as string, can be
null
.
Declaration
public string TermAsString { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceCompareTo(DirectSpellChecker.ScoreTerm)
Declaration
public virtual int CompareTo(DirectSpellChecker.ScoreTerm other)
Parameters
Type | Name | Description |
---|---|---|
DirectSpellChecker.ScoreTerm | other |
Returns
Type | Description |
---|---|
System.Int32 |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
Implements
System.IComparable<T>