public class SimpleQParserPlugin extends QParserPlugin
SimpleQueryParser
for details on the exact syntax allowed
to be used for queries.
fieldA^1.0 fieldB^2.2
. A field can also be specified without a boost by simply listing the
field as fieldA fieldB
. Any field without a boost will default to use a boost of 1.0.
SolrInfoBean.Category, SolrInfoBean.Group
Modifier and Type | Field and Description |
---|---|
static String |
NAME
The name that can be used to specify this plugin should be used to parse the query.
|
DEFAULT_QTYPE, standardPlugins
Constructor and Description |
---|
SimpleQParserPlugin() |
Modifier and Type | Method and Description |
---|---|
QParser |
createParser(String qstr,
SolrParams localParams,
SolrParams params,
SolrQueryRequest req)
Returns a QParser that will create a query by using Lucene's SimpleQueryParser.
|
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)
createParser
in class QParserPlugin
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.