public static void createCore(String host,String coreName,String collection,String shard) throws IOException {
  String createCoreCTemplate="http://%s:%s/solr/admin/cores?action=CREATE&name=%s&collection=%s&shard=%s";
  String createCoreCommand=String.format(createCoreCTemplate,host,DEFAULT_SOLR_PORT,coreName,collection,shard);
  String result=executeSolrCommand(createCoreCommand);
  logger.info(result);
}

public static void createCore ( String host , String coreName , String collection , String shard ) throws IOException { String createCoreCTemplate = "http://%s:%s/solr/admin/cores?action=CREATE&name=%s&collection=%s&shard=%s" ; String createCoreCommand = String . format ( createCoreCTemplate , host , DEFAULT_SOLR_PORT , coreName , collection , shard ) ; String result = executeSolrCommand ( createCoreCommand ) ; logger . info ( result ) ; }
create a core on a host given the shard , collection and corename
