Package org.hibernate.search.query.dsl
Interface FuzzyContext
- All Superinterfaces:
QueryCustomization<FuzzyContext>
Deprecated.
- Author:
- Emmanuel Bernard
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.field / property the term query is executed onDeprecated.fields / properties the term query is executed onwithEditDistanceUpTo(int maxEditDistance) Deprecated.Maximum value of the edit distance.withPrefixLength(int prefixLength) Deprecated.Size of the prefix ignored by the fuzzyness.Methods inherited from interface org.hibernate.search.query.dsl.QueryCustomization
boostedTo, filteredBy, withConstantScore
-
Method Details
-
onField
Deprecated.field / property the term query is executed on- Parameters:
field- the name of the field- Returns:
- a
TermMatchingContext
-
onFields
Deprecated.fields / properties the term query is executed on- Parameters:
fields- the names of the fields- Returns:
- a
TermMatchingContext
-
withEditDistanceUpTo
Deprecated.Maximum value of the edit distance. Roughly speaking, the number of changes between two terms to be considered close enough. Can be either 1 or 2 (0 would mean no fuzziness). Defaults to 2.- Parameters:
maxEditDistance- max value for the edit distance- Returns:
- a
FuzzyContext
-
withPrefixLength
Deprecated.Size of the prefix ignored by the fuzzyness. A non zero value is recommended if the index contains a huge amount of distinct terms Defaults to 0- Parameters:
prefixLength- the length of the prefix- Returns:
- a
FuzzyContext
-
QueryBuilder.