Class SolrCoreParser

  • All Implemented Interfaces:, 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.
    • Field Summary

      Modifier and Type Field Description
      protected SolrQueryRequest req  
      • Fields inherited from class org.apache.lucene.queryparser.xml.CoreParser

        analyzer, defaultField, DISALLOW_EXTERNAL_ENTITY_RESOLVER, parser, queryFactory, spanFactory
    • 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 interface NamedListInitializedPlugin
        initArgs - non-null list of initialization parameters (may be empty)
      • getErrorHandler

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