org.apache.solr.search
Class SimpleQParserPlugin

java.lang.Object
  extended by org.apache.solr.search.QParserPlugin
      extended by org.apache.solr.search.SimpleQParserPlugin
All Implemented Interfaces:
SolrInfoMBean, NamedListInitializedPlugin

public class SimpleQParserPlugin
extends QParserPlugin

Create a query from the input value that will be parsed by Lucene's SimpleQueryParser. See SimpleQueryParser for details on the exact syntax allowed to be used for queries.
The following options may be applied for parsing the query.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoMBean
SolrInfoMBean.Category
 
Field Summary
static String NAME
          The name that can be used to specify this plugin should be used to parse the query.
 
Fields inherited from class org.apache.solr.search.QParserPlugin
DEFAULT_QTYPE, standardPlugins
 
Constructor Summary
SimpleQParserPlugin()
           
 
Method Summary
 QParser createParser(String qstr, SolrParams localParams, SolrParams params, SolrQueryRequest req)
          Returns a QParser that will create a query by using Lucene's SimpleQueryParser.
 void init(NamedList args)
          No initialization is necessary so this method is empty.
 
Methods inherited from class org.apache.solr.search.QParserPlugin
getCategory, getDescription, getDocs, getName, getSource, getStatistics, getVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
The name that can be used to specify this plugin should be used to parse the query.

See Also:
Constant Field Values
Constructor Detail

SimpleQParserPlugin

public SimpleQParserPlugin()
Method Detail

init

public void init(NamedList args)
No initialization is necessary so this method is empty.


createParser

public QParser createParser(String qstr,
                            SolrParams localParams,
                            SolrParams params,
                            SolrQueryRequest req)
Returns a QParser that will create a query by using Lucene's SimpleQueryParser.

Specified by:
createParser in class QParserPlugin


Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.