public abstract class QParserPlugin extends Object implements NamedListInitializedPlugin, SolrInfoBean
SolrInfoBean.Category, SolrInfoBean.Group
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_QTYPE
internal use - name of the default parser
|
static Map<String,QParserPlugin> |
standardPlugins
Internal use - name to parser for the builtin parsers.
|
Constructor and Description |
---|
QParserPlugin() |
Modifier and Type | Method and Description |
---|---|
abstract QParser |
createParser(String qstr,
SolrParams localParams,
SolrParams params,
SolrQueryRequest req)
return a
QParser |
SolrInfoBean.Category |
getCategory()
Category of this component
|
String |
getDescription()
Simple one or two line description
|
Set<String> |
getMetricNames()
Modifiable set of metric names that this component reports (default is null,
which means none).
|
String |
getName()
Simple common usage name, e.g.
|
void |
init(NamedList args) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetricRegistry, getMetricsSnapshot, registerMetricName
public static final String DEFAULT_QTYPE
public static final Map<String,QParserPlugin> standardPlugins
QParserPlugin
has own instance of standardPlugins.
This leads to cyclic dependencies of static fields and to case when NAME field is not yet initialized.
This result to NPE during initialization.
For every plugin, listed here, NAME field has to be final and static.public abstract QParser createParser(String qstr, SolrParams localParams, SolrParams params, SolrQueryRequest req)
QParser
public void init(NamedList args)
init
in interface NamedListInitializedPlugin
public String getName()
SolrInfoBean
getName
in interface SolrInfoBean
public String getDescription()
SolrInfoBean
getDescription
in interface SolrInfoBean
public SolrInfoBean.Category getCategory()
SolrInfoBean
getCategory
in interface SolrInfoBean
public Set<String> getMetricNames()
SolrInfoBean
SolrInfoBean.registerMetricName(String)
to capture what metrics names are reported from this component.
NOTE: this set has to allow iteration under modifications.
getMetricNames
in interface SolrInfoBean
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.