public static BooleanExpression fuzzyLike(Path<String> path, String value,
            int maxEdits, int prefixLength) {
        Term term = new Term(path.getMetadata().getName(), value);
        return new QueryElement(new FuzzyQuery(term, maxEdits, prefixLength));
    }
Create a fuzzy query

@param path
           path
@param value
           value to match
@param maxEdits
           must be &gt;= 0 and &lt;=
           {@link LevenshteinAutomata#MAXIMUM_SUPPORTED_DISTANCE}.
@param prefixLength
           length of common (non-fuzzy) prefix
@return condition
querydsl-lucene5/src/main/java/com/querydsl/lucene5/LuceneExpressions.java