SuggestionOptions Class

Represents the options for getting suggestions.

Definition

Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
[SerializableAttribute]
public class SuggestionOptions
Inheritance
Object    SuggestionOptions

Constructors

SuggestionOptions Initializes a new instance of the SuggestionOptions class.

Properties

DeltaLength The maximum difference in length between the original input and a suggestion. Default is 3.
Limit The maximum number of suggestion to return. Default is 5.
MaxLevenshteinDistance The maximum Levenshtein distance between the original input and a suggestion. Default is 4.
RejectQueueLength Rejected words are matches that are not better than those already in the match queue. They are put in a rejected queue that gets reset in case one actually can go in the match queue. This option defines the size of the rejected queue (as reject*max(max_matched,limit)). If the rejected queue is filled, the engine stops looking for potential matches.
ReturnStatistics Whether to return statistics for a suggestions. Default is true.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also