com.indexdata.torus2.query
Class MatchingUtil
java.lang.Object
com.indexdata.torus2.query.MatchingUtil
public class MatchingUtil
- extends Object
- Author:
- jakub
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MatchingUtil
public MatchingUtil()
parseQuery
public static org.z3950.zing.cql.CQLNode parseQuery(String query)
throws QueryException
- Parses query string into tree representation
- Parameters:
query
-
- Returns:
- parsed query or null if query string was null or empty
- Throws:
QueryException
- when query is malformed or cannot be read
equalsWildcard
public static boolean equalsWildcard(String pattern,
int patternAt,
String text,
int textAt)
normalizeTokens
public static String normalizeTokens(String src,
String sep,
Tokenizer.TokenizerType type)
deAnchorTerm
public static String deAnchorTerm(String term)
surround
public static String surround(String text,
String sur)
Copyright © 2008-2013 Index Data. All Rights Reserved.