private void initQParsers(){
  initPlugins(qParserPlugins,QParserPlugin.class);
  for (int i=0; i < QParserPlugin.standardPlugins.length; i+=2) {
    try {
      String name=(String)QParserPlugin.standardPlugins[i];
      if (null == qParserPlugins.get(name)) {
        Class<QParserPlugin> clazz=(Class<QParserPlugin>)QParserPlugin.standardPlugins[i + 1];
        QParserPlugin plugin=clazz.newInstance();
        qParserPlugins.put(name,plugin);
        plugin.init(null);
        infoRegistry.put(name,plugin);
      }
    }
 catch (    Exception e) {
      throw new SolrException(SolrException.ErrorCode.SERVER_ERROR,e);
    }
  }
}

private void initQParsers ( ) { initPlugins ( qParserPlugins , QParserPlugin . class ) ; for ( int i = 0 ; i < QParserPlugin . standardPlugins . length ; i += 2 ) { try { String name = ( String ) QParserPlugin . standardPlugins [ i ] ; if ( null == qParserPlugins . get ( name ) ) { Class < QParserPlugin > clazz = ( Class < QParserPlugin > ) QParserPlugin . standardPlugins [ i + 1 ] ; QParserPlugin plugin = clazz . newInstance ( ) ; qParserPlugins . put ( name , plugin ) ; plugin . init ( null ) ; infoRegistry . put ( name , plugin ) ; } } catch ( Exception e ) { throw new SolrException ( SolrException . ErrorCode . SERVER_ERROR , e ) ; } } }
configure the query parsers .
