QueryParserConstants
public class QueryParser extends Object implements QueryParserConstants
Modifier and Type | Field | Description |
---|---|---|
Token |
jj_nt |
Next token.
|
Token |
token |
Current token.
|
QueryParserTokenManager |
token_source |
Generated Token Manager.
|
_DISTOP_NUM, _NUM_CHAR, _ONE_CHAR, _STAR, _TERM_CHAR, _WHITESPACE, AND, Boost, CARAT, COLON, COMMA, DEFAULT, EOF, LPAREN, N, NOT, NUMBER, OR, QUOTED, RPAREN, SUFFIXTERM, TERM, tokenImage, TRUNCQUOTED, TRUNCTERM, W
Constructor | Description |
---|---|
QueryParser() |
|
QueryParser(CharStream stream) |
Constructor with user supplied CharStream.
|
QueryParser(QueryParserTokenManager tm) |
Constructor with generated Token Manager.
|
public QueryParserTokenManager token_source
public Token token
public Token jj_nt
public QueryParser()
public QueryParser(CharStream stream)
public QueryParser(QueryParserTokenManager tm)
public static SrndQuery parse(String query) throws ParseException
ParseException
public SrndQuery parse2(String query) throws ParseException
ParseException
protected SrndQuery getAndQuery(List<SrndQuery> queries, boolean infix, Token andToken)
protected static int getOpDistance(String distanceOp)
protected static void checkDistanceSubQueries(DistanceQuery distq, String opName) throws ParseException
ParseException
protected SrndQuery getDistanceQuery(List<SrndQuery> queries, boolean infix, Token dToken, boolean ordered) throws ParseException
ParseException
protected boolean allowedSuffix(String suffixed)
protected boolean allowedTruncation(String truncated)
public final SrndQuery TopSrndQuery() throws ParseException
ParseException
public final SrndQuery FieldsQuery() throws ParseException
ParseException
public final ArrayList<String> OptionalFields() throws ParseException
ParseException
public final SrndQuery OrQuery() throws ParseException
ParseException
public final SrndQuery AndQuery() throws ParseException
ParseException
public final SrndQuery NotQuery() throws ParseException
ParseException
public final SrndQuery NQuery() throws ParseException
ParseException
public final SrndQuery WQuery() throws ParseException
ParseException
public final SrndQuery PrimaryQuery() throws ParseException
ParseException
public final SrndQuery PrefixOperatorQuery() throws ParseException
ParseException
public final List<SrndQuery> FieldsQueryList() throws ParseException
ParseException
public final SrndQuery SimpleTerm() throws ParseException
ParseException
public final void OptionalWeights(SrndQuery q) throws ParseException
ParseException
public void ReInit(CharStream stream)
public void ReInit(QueryParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.