use of org.apache.solr.client.solrj.response.CollectionAdminResponse in project beijingThirdPeriod by weidongcao.
the class SolrAliasTest method createAlias.
public static void createAlias() throws IOException, SolrServerException {
String collections = "yisou20171200,yisou20171201,yisou20171202";
// instertData();
CollectionAdminRequest.CreateAlias alias = CollectionAdminRequest.createAlias("yisou", collections);
CollectionAdminResponse response = alias.process(client);
System.out.println("response = " + response);
}
Aggregations