Package org.apache.solr.search
Class SolrCoreParser
- java.lang.Object
-
- org.apache.lucene.queryparser.xml.CoreParser
-
- org.apache.solr.search.SolrCoreParser
-
- All Implemented Interfaces:
org.apache.lucene.queryparser.xml.builders.SpanQueryBuilder
,org.apache.lucene.queryparser.xml.QueryBuilder
,NamedListInitializedPlugin
public class SolrCoreParser extends org.apache.lucene.queryparser.xml.CoreParser implements NamedListInitializedPlugin
Assembles a QueryBuilder which uses Query objects from Solr'ssearch
module in addition to Query objects supported by the LuceneCoreParser
.
-
-
Field Summary
Fields Modifier and Type Field Description protected SolrQueryRequest
req
-
Constructor Summary
Constructors Constructor Description SolrCoreParser(String defaultField, org.apache.lucene.analysis.Analyzer analyzer, SolrQueryRequest req)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ErrorHandler
getErrorHandler()
void
init(org.apache.solr.common.util.NamedList<?> initArgs)
init
will be called just once, immediately after creation.
-
-
-
Field Detail
-
req
protected final SolrQueryRequest req
-
-
Constructor Detail
-
SolrCoreParser
public SolrCoreParser(String defaultField, org.apache.lucene.analysis.Analyzer analyzer, SolrQueryRequest req)
-
-
Method Detail
-
init
public void init(org.apache.solr.common.util.NamedList<?> initArgs)
Description copied from interface:NamedListInitializedPlugin
init
will be called just once, immediately after creation.Source of the initialization arguments will typically be solrconfig.xml, but will ultimately depends on the plugin itself
- Specified by:
init
in interfaceNamedListInitializedPlugin
- Parameters:
initArgs
- non-null list of initialization parameters (may be empty)
-
getErrorHandler
protected ErrorHandler getErrorHandler()
- Overrides:
getErrorHandler
in classorg.apache.lucene.queryparser.xml.CoreParser
-
-