Package org.apache.solr.search
Class PayloadScoreQParserPlugin
- java.lang.Object
-
- org.apache.solr.search.QParserPlugin
-
- org.apache.solr.search.PayloadScoreQParserPlugin
-
- All Implemented Interfaces:
SolrInfoBean
,NamedListInitializedPlugin
public class PayloadScoreQParserPlugin extends QParserPlugin
Creates a PayloadScoreQuery wrapping a SpanQuery created from the input value, applying text analysis and constructing SpanTermQuery or SpanNearQuery based on number of terms.
Other parameters:f
, the field (required)func
, payload function (min, max, or average; required)includeSpanScore
, multiply payload function result by similarity score or not (default: false)
Example:{!payload_score f=weighted_terms_dpf}Foo Bar
creates a SpanNearQuery with "Foo" followed by "Bar"
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoBean
SolrInfoBean.Category, SolrInfoBean.Group
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_OPERATOR
static String
NAME
-
Fields inherited from class org.apache.solr.search.QParserPlugin
DEFAULT_QTYPE, standardPlugins
-
-
Constructor Summary
Constructors Constructor Description PayloadScoreQParserPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QParser
createParser(String qstr, SolrParams localParams, SolrParams params, SolrQueryRequest req)
return aQParser
-
Methods inherited from class org.apache.solr.search.QParserPlugin
getCategory, getDescription, getMetricNames, getName, init
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.core.SolrInfoBean
getMetricRegistry, getMetricsSnapshot, registerMetricName
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
DEFAULT_OPERATOR
public static final String DEFAULT_OPERATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
createParser
public QParser createParser(String qstr, SolrParams localParams, SolrParams params, SolrQueryRequest req)
Description copied from class:QParserPlugin
return aQParser
- Specified by:
createParser
in classQParserPlugin
-
-