public abstract class QParserPlugin extends Object implements NamedListInitializedPlugin, SolrInfoMBean
SolrInfoMBean.Category| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_QTYPE
internal use - name of the default parser
|
static Map<String,Class<? extends QParserPlugin>> |
standardPlugins
Internal use - name to class mappings of 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 |
SolrInfoMBean.Category |
getCategory()
Purpose of this Class
|
String |
getDescription()
Simple one or two line description
|
URL[] |
getDocs()
Documentation URL list.
|
String |
getName()
Simple common usage name, e.g.
|
String |
getSource()
CVS Source, SVN Source, etc
|
NamedList |
getStatistics()
Any statistics this instance would like to be publicly available via
the Solr Administration interface.
|
String |
getVersion()
Simple common usage version, e.g.
|
void |
init(NamedList args) |
public static final String DEFAULT_QTYPE
public static final Map<String,Class<? extends 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)
QParserpublic void init(NamedList args)
init in interface NamedListInitializedPluginpublic String getName()
SolrInfoMBeangetName in interface SolrInfoMBeanpublic String getVersion()
SolrInfoMBeangetVersion in interface SolrInfoMBeanpublic String getDescription()
SolrInfoMBeangetDescription in interface SolrInfoMBeanpublic SolrInfoMBean.Category getCategory()
SolrInfoMBeangetCategory in interface SolrInfoMBeanpublic String getSource()
SolrInfoMBeangetSource in interface SolrInfoMBeanpublic URL[] getDocs()
SolrInfoMBeanSuggested documentation URLs: Homepage for sponsoring project, FAQ on class usage, Design doc for class, Wiki, bug reporting URL, etc...
getDocs in interface SolrInfoMBeanpublic NamedList getStatistics()
SolrInfoMBean
Any Object type may be stored in the list, but only the
toString() representation will be used.
getStatistics in interface SolrInfoMBeanCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.