com.mysema.query.lucene
Class LuceneUtils

java.lang.Object
  extended by com.mysema.query.lucene.LuceneUtils

public final class LuceneUtils
extends Object

Utility methods to create filter expressions for Lucene queries that are not covered by the Querydsl standard expression model

Author:
tiwe

Method Summary
static BooleanExpression fuzzyLike(Path<String> path, String value)
          Create a fuzzy query
static BooleanExpression fuzzyLike(Path<String> path, String value, float minimumSimilarity)
          Create a fuzzy query
static BooleanExpression fuzzyLike(Path<String> path, String value, float minimumSimilarity, int prefixLength)
          Create a fuzzy query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fuzzyLike

public static BooleanExpression fuzzyLike(Path<String> path,
                                          String value)
Create a fuzzy query

Parameters:
path -
value -
Returns:

fuzzyLike

public static BooleanExpression fuzzyLike(Path<String> path,
                                          String value,
                                          float minimumSimilarity)
Create a fuzzy query

Parameters:
path -
value -
minimumSimilarity -
Returns:

fuzzyLike

public static BooleanExpression fuzzyLike(Path<String> path,
                                          String value,
                                          float minimumSimilarity,
                                          int prefixLength)
Create a fuzzy query

Parameters:
path -
value -
minimumSimilarity -
prefixLength -
Returns:


Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.