Class 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's search module in addition to Query objects supported by the Lucene CoreParser.
    • Constructor Detail

      • SolrCoreParser

        public SolrCoreParser​(String defaultField,
                              org.apache.lucene.analysis.Analyzer analyzer,
                              SolrQueryRequest req)
    • Method Detail

      • init

        public void init​(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 interface NamedListInitializedPlugin
        Parameters:
        initArgs - non-null list of initialization parameters (may be empty)
      • getErrorHandler

        protected ErrorHandler getErrorHandler()
        Overrides:
        getErrorHandler in class org.apache.lucene.queryparser.xml.CoreParser