Class ComplexPhraseQParserPlugin

java.lang.Object
org.apache.solr.search.QParserPlugin
org.apache.solr.search.ComplexPhraseQParserPlugin
All Implemented Interfaces:
AutoCloseable, SolrInfoBean, SolrMetricProducer, NamedListInitializedPlugin

public class ComplexPhraseQParserPlugin extends QParserPlugin
Parse Solr's variant on the Lucene ComplexPhraseQueryParser syntax.

Modified from LuceneQParserPlugin and SurroundQParserPlugin

  • Field Details

  • Constructor Details

    • ComplexPhraseQParserPlugin

      public ComplexPhraseQParserPlugin()
  • Method Details

    • init

      public void init(org.apache.solr.common.util.NamedList<?> args)
      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

      Parameters:
      args - non-null list of initialization parameters (may be empty)
    • createParser

      public QParser createParser(String qstr, org.apache.solr.common.params.SolrParams localParams, org.apache.solr.common.params.SolrParams params, SolrQueryRequest req)
      Description copied from class: QParserPlugin
      return a QParser
      Specified by:
      createParser in class QParserPlugin