Thanks for the comments!! I found out the solution on how I can get the replica's state. Here's the piece of code.
while (iter.hasNext()) { Slice slice = iter.next(); for(Replica replica:slice.getReplicas()) { System.out.println("replica state for " + replica.getStr("core") + " : "+ replica.getStr( "state" )); System.out.println(slice.getName()); System.out.println(slice.getState()); } } -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-API-for-getting-shard-s-leader-replica-status-tp4156902p4157108.html Sent from the Solr - User mailing list archive at Nabble.com.