Home
Cloud
Big Data
CI
Install
Samples
Java
Ubuntu
Maven
Archive
Apache Solr
|
SolrJ: CollectionAdminRequest API - Cluster Status
Notes
Cluster Status: CollectionAdminRequest::ClusterStatus
Notes
In order for the code bellow to work:
► Make sure to update the variables ("
solrUrl
", "
collectionName
", ...) with your information.
Cluster Status: CollectionAdminRequest::ClusterStatus
final String[] solrUrl = { "http://localhost:8983/solr" }; final CloudSolrClient cloudSolrClient = new CloudSolrClient.Builder(Arrays.asList(solrUrl)).build(); // get cluster status { final CollectionAdminRequest.ClusterStatus adminRequest = CollectionAdminRequest.ClusterStatus.getClusterStatus(); CollectionAdminResponse adminResponse = adminRequest.process(cloudSolrClient); System.out.println(adminResponse); } cloudSolrClient.close();
© 2010-2022
mti
tek