Package org.apache.solr.search
Class LuceneQParser
- java.lang.Object
-
- org.apache.solr.search.QParser
-
- org.apache.solr.search.LuceneQParser
-
- Direct Known Subclasses:
MaxScoreQParser
public class LuceneQParser extends QParser
- See Also:
LuceneQParserPlugin
-
-
Field Summary
-
Fields inherited from class org.apache.solr.search.QParser
FLAG_FILTER, flags, localParams, localParamsEnd, params, qstr, query, recurseCount, req, stringIncludingLocalParams, valFollowedParams
-
-
Constructor Summary
Constructors Constructor Description LuceneQParser(String qstr, org.apache.solr.common.params.SolrParams localParams, org.apache.solr.common.params.SolrParams params, SolrQueryRequest req)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getDefaultHighlightFields()
org.apache.lucene.search.Query
parse()
Create and return theQuery
object represented byqstr
.-
Methods inherited from class org.apache.solr.search.QParser
addDebugInfo, getFlags, getHighlightQuery, getLocalParams, getParam, getParams, getParser, getParser, getParser, getPrefixQueryMinPrefixLength, getQuery, getReq, getSortSpec, getString, isFilter, setFlags, setIsFilter, setLocalParams, setParams, setReq, setString, subQuery
-
-
-
-
Constructor Detail
-
LuceneQParser
public LuceneQParser(String qstr, org.apache.solr.common.params.SolrParams localParams, org.apache.solr.common.params.SolrParams params, SolrQueryRequest req)
-
-
Method Detail
-
parse
public org.apache.lucene.search.Query parse() throws SyntaxError
Description copied from class:QParser
Create and return theQuery
object represented byqstr
. Null MAY be returned to signify there was no input (e.g. no query string) to parse.- Specified by:
parse
in classQParser
- Throws:
SyntaxError
- See Also:
QParser.getQuery()
-
getDefaultHighlightFields
public String[] getDefaultHighlightFields()
- Overrides:
getDefaultHighlightFields
in classQParser
-
-