|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.solr.search.QParser
org.apache.solr.search.FunctionQParser
public class FunctionQParser
Field Summary | |
---|---|
QueryParsing.StrParser |
sp
|
Fields inherited from class org.apache.solr.search.QParser |
---|
localParams, localParamsEnd, params, qstr, query, recurseCount, req, stringIncludingLocalParams, valFollowedParams |
Constructor Summary | |
---|---|
FunctionQParser(String qstr,
org.apache.solr.common.params.SolrParams localParams,
org.apache.solr.common.params.SolrParams params,
SolrQueryRequest req)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class org.apache.solr.search.QParser |
---|
addDebugInfo, getDefaultHighlightFields, getHighlightQuery, getLocalParams, getParam, getParams, getParser, getQuery, getReq, getSort, getString, setLocalParams, setParams, setReq, setString, subQuery |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public QueryParsing.StrParser sp
Constructor Detail |
---|
public FunctionQParser(String qstr, org.apache.solr.common.params.SolrParams localParams, org.apache.solr.common.params.SolrParams params, SolrQueryRequest req)
Method Detail |
---|
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
QParser
Query
object represented by qstr
parse
in class QParser
org.apache.lucene.queryParser.ParseException
QParser.getQuery()
public boolean hasMoreArguments() throws org.apache.lucene.queryParser.ParseException
org.apache.lucene.queryParser.ParseException
public String parseId() throws org.apache.lucene.queryParser.ParseException
org.apache.lucene.queryParser.ParseException
public Float parseFloat() throws org.apache.lucene.queryParser.ParseException
org.apache.lucene.queryParser.ParseException
public double parseDouble() throws org.apache.lucene.queryParser.ParseException
org.apache.lucene.queryParser.ParseException
public int parseInt() throws org.apache.lucene.queryParser.ParseException
org.apache.lucene.queryParser.ParseException
public boolean argWasQuoted()
public String parseArg() throws org.apache.lucene.queryParser.ParseException
org.apache.lucene.queryParser.ParseException
public List<ValueSource> parseValueSourceList() throws org.apache.lucene.queryParser.ParseException
org.apache.lucene.queryParser.ParseException
public ValueSource parseValueSource() throws org.apache.lucene.queryParser.ParseException
org.apache.lucene.queryParser.ParseException
public org.apache.lucene.search.Query parseNestedQuery() throws org.apache.lucene.queryParser.ParseException
org.apache.lucene.queryParser.ParseException
protected ValueSource parseValueSource(boolean doConsumeDelimiter) throws org.apache.lucene.queryParser.ParseException
doConsumeDelimiter
- whether to consume a delimiter following the ValueSource
org.apache.lucene.queryParser.ParseException
protected boolean consumeArgumentDelimiter() throws org.apache.lucene.queryParser.ParseException
org.apache.lucene.queryParser.ParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |