public abstract class QParserPlugin extends Object implements NamedListInitializedPlugin, SolrInfoMBean
SolrInfoMBean.Category, SolrInfoMBean.Group
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)
QParser
public void init(NamedList args)
init
in interface NamedListInitializedPlugin
public String getName()
SolrInfoMBean
getName
in interface SolrInfoMBean
public String getVersion()
SolrInfoMBean
getVersion
in interface SolrInfoMBean
public String getDescription()
SolrInfoMBean
getDescription
in interface SolrInfoMBean
public SolrInfoMBean.Category getCategory()
SolrInfoMBean
getCategory
in interface SolrInfoMBean
public String getSource()
SolrInfoMBean
getSource
in interface SolrInfoMBean
public URL[] getDocs()
SolrInfoMBean
Suggested documentation URLs: Homepage for sponsoring project, FAQ on class usage, Design doc for class, Wiki, bug reporting URL, etc...
getDocs
in interface SolrInfoMBean
public NamedList getStatistics()
SolrInfoMBean
Any Object type may be stored in the list, but only the
toString()
representation will be used.
getStatistics
in interface SolrInfoMBean
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.