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 Object[] |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init
public static final String DEFAULT_QTYPE
public static final Object[] 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 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-2014 Apache Software Foundation. All Rights Reserved.