public class BoostQParserPlugin extends QParserPlugin
b, the function query to use as the boost.
Example: {!boost b=log(popularity)}foo creates a query "foo"
which is boosted (scores are multiplied) by the function query log(popularity).
The query to be boosted may be of any type.
Example: {!boost b=recip(ms(NOW,mydatefield),3.16e-11,1,1)}foo creates a query "foo"
which is boosted by the date boosting function referenced in
ReciprocalFloatFunction
SolrInfoBean.Category, SolrInfoBean.Group| Modifier and Type | Field and Description |
|---|---|
static String |
BOOSTFUNC |
static String |
NAME |
DEFAULT_QTYPE, standardPlugins| Constructor and Description |
|---|
BoostQParserPlugin() |
| Modifier and Type | Method and Description |
|---|---|
QParser |
createParser(String qstr,
SolrParams localParams,
SolrParams params,
SolrQueryRequest req)
return a
QParser |
getCategory, getDescription, getMetricNames, getName, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetricRegistry, getMetricsSnapshot, registerMetricNamepublic static final String NAME
public static String BOOSTFUNC
public QParser createParser(String qstr, SolrParams localParams, SolrParams params, SolrQueryRequest req)
QParserPluginQParsercreateParser in class QParserPluginCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.