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
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) |
public void init(NamedList args)
public QParser createParser(String qstr, SolrParams localParams, SolrParams params, SolrQueryRequest req)
QParserPlugin
QParser
createParser
in class QParserPlugin
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.