public final class LuceneExpressions extends Object
Modifier and Type | Method and Description |
---|---|
static BooleanExpression |
fuzzyLike(Path<String> path,
String value)
Create a fuzzy query
|
static BooleanExpression |
fuzzyLike(Path<String> path,
String value,
int maxEdits)
Create a fuzzy query
|
static BooleanExpression |
fuzzyLike(Path<String> path,
String value,
int maxEdits,
int prefixLength)
Create a fuzzy query
|
public static BooleanExpression fuzzyLike(Path<String> path, String value)
path
- pathvalue
- value to matchpublic static BooleanExpression fuzzyLike(Path<String> path, String value, int maxEdits)
path
- pathvalue
- value to matchmaxEdits
- must be >= 0 and <=
LevenshteinAutomata.MAXIMUM_SUPPORTED_DISTANCE
.public static BooleanExpression fuzzyLike(Path<String> path, String value, int maxEdits, int prefixLength)
path
- pathvalue
- value to matchmaxEdits
- must be >= 0 and <=
LevenshteinAutomata.MAXIMUM_SUPPORTED_DISTANCE
.prefixLength
- length of common (non-fuzzy) prefixCopyright © 2007–2016 Querydsl. All rights reserved.