org.apache.solr.search
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
SolrInfoMBean.Category
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 |
void |
init(NamedList args) |
getCategory, getDescription, getDocs, getName, getSource, getStatistics, getVersion
public void init(NamedList args)
public QParser createParser(String qstr, SolrParams localParams, SolrParams params, SolrQueryRequest req)
QParserPlugin
QParser
createParser
in class QParserPlugin
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.