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, init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetricRegistry, getMetricsSnapshot, registerMetricName
public static final String NAME
public static String BOOSTFUNC
public QParser createParser(String qstr, SolrParams localParams, SolrParams params, SolrQueryRequest req)
QParserPlugin
QParser
createParser
in class QParserPlugin
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.