One option could be to get the clusterstate.json via the following Solr url & figure out the leader from the response json: * http://server:port/solr/zookeeper?detail=true&path=%2Fclusterstate.json*
On Wed, Jul 3, 2013 at 5:57 PM, vicky desai <vicky.de...@germinait.com>wrote: > Hi, > > I have a requirement where in I want to write to the leader and read from > the replica. Reason being If a write request is sent to the replica it > relays it to the leader and then the leader relays it to all the replicas. > This will help me in saving some network traffic as my application performs > continuous writes > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Is-it-possible-to-find-a-leader-from-a-list-of-cores-in-solr-via-java-code-tp4074994p4075083.html > Sent from the Solr - User mailing list archive at Nabble.com. >