public class DisMaxQParserPlugin extends QParserPlugin
{!dismax qf='myfield mytitle^2'}foo
creates a dismax query across
across myfield and mytitle, with a higher weight on mytitle.
A Generic query plugin designed to be given a simple query expression from a user, which it will then query against a variety of pre-configured fields, in a variety of ways, using BooleanQueries, DisjunctionMaxQueries, and PhraseQueries.
All of the following options may be configured for this plugin in the solrconfig as defaults, and may be overriden as request parameters
q.alt=*:*
to denote that all documents
should be returned when no query is specified)
fieldA^1.0 fieldB^2.2
".
This param can be specified multiple times, and the fields
are additive.
SolrPluginUtils.setMinShouldMatch
and mm expression format for details.
fieldA^1.0 fieldB^2.2
".
This param can be specified multiple times, and the fields
are additive.
bq
paramter is specified. Hence you can
disable it by specifying an additional, blank, bq
parameter.
funcA(arg1,arg2)^1.2
funcB(arg3,arg4)^2.2
". NOTE: Whitespace is not allowed
in the function arguments.
This param can be specified multiple times, and the functions
are additive.
The following options are only available as request params...
SolrInfoBean.Category, SolrInfoBean.Group
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
DEFAULT_QTYPE, standardPlugins
Constructor and Description |
---|
DisMaxQParserPlugin() |
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 QParser createParser(String qstr, SolrParams localParams, SolrParams params, SolrQueryRequest req)
QParserPlugin
QParser
createParser
in class QParserPlugin
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.