List of usage examples for org.apache.solr.client.solrj.request CollectionAdminRequest addRole
public static AddRole addRole(String node, String role)
From source file:com.shaie.solr.solrj.ClusterStatusResponseTest.java
License:Apache License
private void addOverseerRole() throws SolrServerException, IOException { CollectionAdminRequest .addRole(SolrCloudUtils.baseUrlToNodeName(solrCluster.getBaseUrl("node1")), "overseer") .process(solrClient);/*from w w w . j a va2 s .c o m*/ CollectionAdminRequest .addRole(SolrCloudUtils.baseUrlToNodeName(solrCluster.getBaseUrl("node2")), "overseer") .process(solrClient); }