public interface FuzzyContext extends QueryCustomization<FuzzyContext>
| Modifier and Type | Method and Description |
|---|---|
TermMatchingContext |
onField(String field)
field / property the term query is executed on
|
TermMatchingContext |
onFields(String... fields)
fields / properties the term query is executed on
|
FuzzyContext |
withEditDistanceUpTo(int maxEditDistance)
Maximum value of the edit distance.
|
FuzzyContext |
withPrefixLength(int prefixLength)
Size of the prefix ignored by the fuzzyness.
|
FuzzyContext |
withThreshold(float threshold)
Deprecated.
|
boostedTo, filteredBy, withConstantScoreTermMatchingContext onField(String field)
field - the name of the fieldTermMatchingContextTermMatchingContext onFields(String... fields)
fields - the names of the fieldsTermMatchingContext@Deprecated FuzzyContext withThreshold(float threshold)
withEditDistanceUpTo(int)threshold - the value for the thresholdFuzzyContextFuzzyContext withEditDistanceUpTo(int maxEditDistance)
maxEditDistance - max value for the edit distanceFuzzyContextFuzzyContext withPrefixLength(int prefixLength)
prefixLength - the length of the prefixFuzzyContextCopyright © 2006–2015 Hibernate. All rights reserved.