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, withConstantScore
TermMatchingContext onField(String field)
field
- the name of the fieldTermMatchingContext
TermMatchingContext onFields(String... fields)
fields
- the names of the fieldsTermMatchingContext
@Deprecated FuzzyContext withThreshold(float threshold)
withEditDistanceUpTo(int)
threshold
- the value for the thresholdFuzzyContext
FuzzyContext withEditDistanceUpTo(int maxEditDistance)
maxEditDistance
- max value for the edit distanceFuzzyContext
FuzzyContext withPrefixLength(int prefixLength)
prefixLength
- the length of the prefixFuzzyContext
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved