// 创建HttpSolrClient
HttpSolrClient server = new HttpSolrClient.Builder("http://localhost:8080/solr/new_core").build();