public void init(NamedList args) {
   if (args != null) {
     Object o = args.get("defaults");
     if (o != null && o instanceof NamedList) {
       defaults = SolrParams.toSolrParams((NamedList) o);
     }
   }
 }
 @Override
 public void init(NamedList args) {
   params = SolrParams.toSolrParams(args);
   this.hdfsDataDir = params.get(HDFS_HOME);
   if (this.hdfsDataDir != null && this.hdfsDataDir.length() == 0) {
     this.hdfsDataDir = null;
   }
   boolean kerberosEnabled = params.getBool(KERBEROS_ENABLED, false);
   LOG.info("Solr Kerberos Authentication " + (kerberosEnabled ? "enabled" : "disabled"));
   if (kerberosEnabled) {
     initKerberos();
   }
 }
  @Override
  public void init(NamedList initArgs) {
    Log.info("init ...");
    SolrParams params = SolrParams.toSolrParams(initArgs);
    phraseSetFiles = params.get("phrases");

    String pImpl = params.get("defType");
    if (pImpl != null) {
      parserImpl = pImpl;
    }

    String replaceWith = params.get("replaceWhitespaceWith");
    if (replaceWith != null && replaceWith.length() > 0) {
      replaceWhitespaceWith = replaceWith.charAt(0);
    }

    String ignoreCaseSt = params.get("ignoreCase");
    if (ignoreCaseSt != null && ignoreCaseSt.equalsIgnoreCase("false")) {
      ignoreCase = false;
    }
  }
 public void init(NamedList args) {
   SolrParams params = SolrParams.toSolrParams(args);
   // handle configuration parameters
   // passed through solrconfig.xml
   ranker = rFact.loadRankerFromFile("mymodel.txt");
 }
 @Override
 public void init(NamedList args) {
   this.initArgs = SolrParams.toSolrParams(args);
 }