public class QueryUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
addSnsIndexesToLikeExpression(String pathLikeExpression)
Process the supplied LIKE expression for an absolute path and return a copy that has a SNS index (wildcard or literal) for
all literal segments in the expression.
|
protected static boolean |
hasWildcardCharacters(String expression) |
static boolean |
includeFullTextScores(Constraint constraint) |
static boolean |
includeFullTextScores(Iterable<Constraint> constraints) |
static String |
toRegularExpression(String likeExpression)
Convert the JCR like expression to a regular expression.
|
protected static String |
toWildcardExpression(String likeExpression)
Convert the JCR like expression to a Lucene wildcard expression.
|
protected static boolean hasWildcardCharacters(String expression)
protected static String toWildcardExpression(String likeExpression)
likeExpression
- the like expression; may not be nullpublic static String toRegularExpression(String likeExpression)
likeExpression
- the like expression; may not be nullpublic static boolean includeFullTextScores(Iterable<Constraint> constraints)
public static boolean includeFullTextScores(Constraint constraint)
public static String addSnsIndexesToLikeExpression(String pathLikeExpression)
/alpha/beta[%]into
/alpha[1]/beta[%]and
/alpha/%/beta[%]into
/alpha[1]/%/beta[%]
pathLikeExpression
- the LIKE expression for a path; may not be nullCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.