protected void runFullImport(String dataConfig,Map<String,String> extraParams) throws Exception {
  HashMap<String,String> params=new HashMap<>();
  params.put("command","full-import");
  params.put("debug","on");
  params.put("dataConfig",dataConfig);
  params.put("clean","true");
  params.put("commit","true");
  params.putAll(extraParams);
  NamedList l=new NamedList();
  for (  Map.Entry<String,String> e : params.entrySet()) {
    l.add(e.getKey(),e.getValue());
  }
  LocalSolrQueryRequest request=new LocalSolrQueryRequest(h.getCore(),l);
  h.query("/dataimport",request);
}

protected void runFullImport ( String dataConfig , Map < String , String > extraParams ) throws Exception { HashMap < String , String > params = new HashMap < > ( ) ; params . put ( "command" , "full-import" ) ; params . put ( "debug" , "on" ) ; params . put ( "dataConfig" , dataConfig ) ; params . put ( "clean" , "true" ) ; params . put ( "commit" , "true" ) ; params . putAll ( extraParams ) ; NamedList l = new NamedList ( ) ; for ( Map . Entry < String , String > e : params . entrySet ( ) ) { l . add ( e . getKey ( ) , e . getValue ( ) ) ; } LocalSolrQueryRequest request = new LocalSolrQueryRequest ( h . getCore ( ) , l ) ; h . query ( "/dataimport" , request ) ; }
runs a full - import using the given dataconfig and the provided request parameters . by default , debug = on , clean = true and commit = true are passed which can be overridden .
