public class FuzzySearchParameters extends Object
Represents parameters related to fuzzy searching.
Modifier and Type | Method and Description |
---|---|
boolean |
getConsiderTranspositions()
Gets or sets a value indicating that the fuzzy search algorithm must
consider transposition of two adjacent characters as a single mistake.
|
boolean |
getEnabled()
Gets or sets a value indicating whether fuzzy search feature is enabled.
|
FuzzyAlgorithm |
getFuzzyAlgorithm()
Gets of sets a fuzzy search algorithm.
|
boolean |
getOnlyBestResults()
Gets or sets a value indicating that only the best results will be returned.
|
byte |
getOnlyBestResultsRange()
Gets or sets the maximum exceeding of the minimum number of mistakes that are found.
|
void |
setConsiderTranspositions(boolean value)
Gets or sets a value indicating that the fuzzy search algorithm must
consider transposition of two adjacent characters as a single mistake.
|
void |
setEnabled(boolean value)
Gets or sets a value indicating whether fuzzy search feature is enabled.
|
void |
setFuzzyAlgorithm(FuzzyAlgorithm value)
Gets of sets a fuzzy search algorithm.
|
void |
setOnlyBestResults(boolean value)
Gets or sets a value indicating that only the best results will be returned.
|
void |
setOnlyBestResultsRange(byte value)
Gets or sets the maximum exceeding of the minimum number of mistakes that are found.
|
public final boolean getEnabled()
Gets or sets a value indicating whether fuzzy search feature is enabled.
Value: A value indicating whether fuzzy search feature is enabled.public final void setEnabled(boolean value)
Gets or sets a value indicating whether fuzzy search feature is enabled.
Value: A value indicating whether fuzzy search feature is enabled.public final FuzzyAlgorithm getFuzzyAlgorithm()
Gets of sets a fuzzy search algorithm.
com.aspose.ms.System.ArgumentNullException
- Thrown when value
is null
.
Value: A fuzzy search algorithm.public final void setFuzzyAlgorithm(FuzzyAlgorithm value)
Gets of sets a fuzzy search algorithm.
com.aspose.ms.System.ArgumentNullException
- Thrown when value
is null
.
Value: A fuzzy search algorithm.public final boolean getOnlyBestResults()
Gets or sets a value indicating that only the best results will be returned.
Value:true
if only the best results will be returned;
otherwise false
.public final void setOnlyBestResults(boolean value)
Gets or sets a value indicating that only the best results will be returned.
Value:true
if only the best results will be returned;
otherwise false
.public final byte getOnlyBestResultsRange()
Gets or sets the maximum exceeding of the minimum number of mistakes that are found.
Value: The maximum exceeding of the minimum number of mistakes found.public final void setOnlyBestResultsRange(byte value)
Gets or sets the maximum exceeding of the minimum number of mistakes that are found.
Value: The maximum exceeding of the minimum number of mistakes found.public final boolean getConsiderTranspositions()
Gets or sets a value indicating that the fuzzy search algorithm must consider transposition of two adjacent characters as a single mistake.
Value:true
if fuzzy search algorithm considers transpositions;
otherwise false
.public final void setConsiderTranspositions(boolean value)
Gets or sets a value indicating that the fuzzy search algorithm must consider transposition of two adjacent characters as a single mistake.
Value:true
if fuzzy search algorithm considers transpositions;
otherwise false
.Copyright © 2019. All rights reserved.