public class DisMaxQParser extends QParser
| Modifier and Type | Field and Description |
|---|---|
protected QParser |
altQParser |
protected Query |
altUserQuery |
protected String[] |
boostParams |
protected List<Query> |
boostQueries |
protected Query |
parsedUserQuery |
protected Map<String,Float> |
queryFields |
localParams, localParamsEnd, params, qstr, query, recurseCount, req, stringIncludingLocalParams, valFollowedParams| Constructor and Description |
|---|
DisMaxQParser(String qstr,
SolrParams localParams,
SolrParams params,
SolrQueryRequest req) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBoostFunctions(BooleanQuery query,
SolrParams solrParams) |
protected void |
addBoostQuery(BooleanQuery query,
SolrParams solrParams) |
void |
addDebugInfo(NamedList<Object> debugInfo) |
protected boolean |
addMainQuery(BooleanQuery query,
SolrParams solrParams)
Adds the main query to the query argument.
|
protected Query |
getAlternateUserQuery(SolrParams solrParams) |
String[] |
getDefaultHighlightFields() |
Query |
getHighlightQuery() |
protected SolrPluginUtils.DisjunctionMaxQueryParser |
getParser(Map<String,Float> fields,
String paramName,
SolrParams solrParams,
float tiebreaker) |
protected Query |
getPhraseQuery(String userQuery,
SolrPluginUtils.DisjunctionMaxQueryParser pp) |
protected Query |
getUserQuery(String userQuery,
SolrPluginUtils.DisjunctionMaxQueryParser up,
SolrParams solrParams) |
Query |
parse()
Create and return the
Query object represented by qstr. |
protected Query parsedUserQuery
protected String[] boostParams
protected Query altUserQuery
protected QParser altQParser
public DisMaxQParser(String qstr, SolrParams localParams, SolrParams params, SolrQueryRequest req)
public Query parse() throws 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 QParserParseExceptionQParser.getQuery()protected void addBoostFunctions(BooleanQuery query, SolrParams solrParams) throws ParseException
ParseExceptionprotected void addBoostQuery(BooleanQuery query, SolrParams solrParams) throws ParseException
ParseExceptionprotected boolean addMainQuery(BooleanQuery query, SolrParams solrParams) throws ParseException
ParseExceptionprotected Query getAlternateUserQuery(SolrParams solrParams) throws ParseException
ParseExceptionprotected Query getPhraseQuery(String userQuery, SolrPluginUtils.DisjunctionMaxQueryParser pp) throws ParseException
ParseExceptionprotected Query getUserQuery(String userQuery, SolrPluginUtils.DisjunctionMaxQueryParser up, SolrParams solrParams) throws ParseException
ParseExceptionprotected SolrPluginUtils.DisjunctionMaxQueryParser getParser(Map<String,Float> fields, String paramName, SolrParams solrParams, float tiebreaker)
public String[] getDefaultHighlightFields()
getDefaultHighlightFields in class QParserpublic Query getHighlightQuery() throws ParseException
getHighlightQuery in class QParserParseExceptionpublic void addDebugInfo(NamedList<Object> debugInfo)
addDebugInfo in class QParser