public class FunctionQParser extends QParser
| Modifier and Type | Field and Description |
|---|---|
QueryParsing.StrParser |
sp |
localParams, localParamsEnd, params, qstr, query, recurseCount, req, stringIncludingLocalParams, valFollowedParams| Constructor and Description |
|---|
FunctionQParser(String qstr,
SolrParams localParams,
SolrParams params,
SolrQueryRequest req) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
argWasQuoted() |
protected boolean |
consumeArgumentDelimiter()
Consume an argument delimiter (a comma) from the token stream.
|
boolean |
getParseMultipleSources()
parse multiple comma separated value sources
|
boolean |
getParseToEnd()
throw exception if there is extra stuff at the end of the parsed valuesource(s).
|
boolean |
hasMoreArguments()
Are there more arguments in the argument list being parsed?
|
org.apache.lucene.search.Query |
parse()
Create and return the
Query object represented by qstr. |
String |
parseArg() |
double |
parseDouble()
Parse a Double
|
Float |
parseFloat()
Parse a float.
|
String |
parseId()
TODO: Doc
|
int |
parseInt()
Parse an integer
|
org.apache.lucene.search.Query |
parseNestedQuery()
TODO: Doc
|
ValueSource |
parseValueSource()
Parse an individual ValueSource.
|
protected ValueSource |
parseValueSource(boolean doConsumeDelimiter)
Parse an individual value source.
|
List<ValueSource> |
parseValueSourceList()
Parse a list of ValueSource.
|
void |
setParseMultipleSources(boolean parseMultipleSources) |
void |
setParseToEnd(boolean parseToEnd) |
addDebugInfo, getDefaultHighlightFields, getHighlightQuery, getLocalParams, getParam, getParams, getParser, getQuery, getReq, getSort, getString, setLocalParams, setParams, setReq, setString, subQuerypublic QueryParsing.StrParser sp
public FunctionQParser(String qstr, SolrParams localParams, SolrParams params, SolrQueryRequest req)
public void setParseMultipleSources(boolean parseMultipleSources)
public boolean getParseMultipleSources()
public void setParseToEnd(boolean parseToEnd)
public boolean getParseToEnd()
public org.apache.lucene.search.Query parse()
throws org.apache.lucene.queryParser.ParseException
QParserQuery object represented by qstr. Null MAY be returned to signify
there was no input (e.g. no query string) to parse.parse in class QParserorg.apache.lucene.queryParser.ParseExceptionQParser.getQuery()public boolean hasMoreArguments()
throws org.apache.lucene.queryParser.ParseException
org.apache.lucene.queryParser.ParseExceptionpublic String parseId() throws org.apache.lucene.queryParser.ParseException
org.apache.lucene.queryParser.ParseExceptionpublic Float parseFloat() throws org.apache.lucene.queryParser.ParseException
org.apache.lucene.queryParser.ParseExceptionpublic double parseDouble()
throws org.apache.lucene.queryParser.ParseException
org.apache.lucene.queryParser.ParseExceptionpublic int parseInt()
throws org.apache.lucene.queryParser.ParseException
org.apache.lucene.queryParser.ParseExceptionpublic boolean argWasQuoted()
public String parseArg() throws org.apache.lucene.queryParser.ParseException
org.apache.lucene.queryParser.ParseExceptionpublic List<ValueSource> parseValueSourceList() throws org.apache.lucene.queryParser.ParseException
org.apache.lucene.queryParser.ParseExceptionpublic ValueSource parseValueSource() throws org.apache.lucene.queryParser.ParseException
org.apache.lucene.queryParser.ParseExceptionpublic org.apache.lucene.search.Query parseNestedQuery()
throws org.apache.lucene.queryParser.ParseException
org.apache.lucene.queryParser.ParseExceptionprotected ValueSource parseValueSource(boolean doConsumeDelimiter) throws org.apache.lucene.queryParser.ParseException
doConsumeDelimiter - whether to consume a delimiter following the ValueSourceorg.apache.lucene.queryParser.ParseExceptionprotected boolean consumeArgumentDelimiter()
throws org.apache.lucene.queryParser.ParseException
org.apache.lucene.queryParser.ParseException