MtasSolrCQLQParserPlugin.java

package mtas.solr.search;

import org.apache.solr.common.params.SolrParams;
import org.apache.solr.common.util.NamedList;
import org.apache.solr.request.SolrQueryRequest;
import org.apache.solr.search.QParser;
import org.apache.solr.search.QParserPlugin;

/**
 * The Class MtasSolrCQLQParserPlugin.
 */
public class MtasSolrCQLQParserPlugin extends QParserPlugin {

  /*
   * (non-Javadoc)
   * 
   * @see org.apache.solr.search.QParserPlugin#init(org.apache.solr.common.util.
   * NamedList)
   */
  @SuppressWarnings("rawtypes")
  @Override
  public void init(NamedList args) {
    // do nothing for now
  }

  /*
   * (non-Javadoc)
   * 
   * @see org.apache.solr.search.QParserPlugin#createParser(java.lang.String,
   * org.apache.solr.common.params.SolrParams,
   * org.apache.solr.common.params.SolrParams,
   * org.apache.solr.request.SolrQueryRequest)
   */
  @Override
  public QParser createParser(String qstr, SolrParams localParams,
      SolrParams params, SolrQueryRequest req) {
    return new MtasCQLQParser(qstr, localParams, params, req);
  }

}