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

    Fields
    Modifier and Type
    Field
    Description
    protected final SolrQueryRequest
     

    Fields inherited from class org.apache.lucene.queryparser.xml.CoreParser

    analyzer, defaultField, DISALLOW_EXTERNAL_ENTITY_RESOLVER, parser, queryFactory, spanFactory
  • Constructor Summary

    Constructors
    Constructor
    Description
    SolrCoreParser(String defaultField, org.apache.lucene.analysis.Analyzer analyzer, SolrQueryRequest req)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected ErrorHandler
     
    void
    init(org.apache.solr.common.util.NamedList<?> initArgs)
    init will be called just once, immediately after creation.

    Methods inherited from class org.apache.lucene.queryparser.xml.CoreParser

    addQueryBuilder, addSpanBuilder, addSpanQueryBuilder, getEntityResolver, getQuery, getSpanQuery, parse

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • SolrCoreParser

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

    • 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
      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