If you're using ReplicitionHandler directly, you already have the xml from which to extract the 'indexSize' attribute. >From a client, you can get the indexSize by issuing: http://hostname:8983/solr/core/replication?command=details This will give you an xml response. Use: http://hostname:8983/solr/core/replication?command=details&wt=json to give you a json string that has 'indexSize' within it:
{"responseHeader":{"status":0,"QTime":0},"details":{"indexSize":"6.63 KB","indexPath":"usr//bin/solr/core0/index","commits":[["indexVersion",1259974360056,"generation",1572,"filelist",["segments_17o"]],["indexVersion",1259974360057,"generation",1573,"filelist",["segments_17p","_zv.fdx","_zv.fnm","_zv.fdt","_zv.nrm","_zv.tis","_zv.prx","_zv.tii","_zv.frq"]]],"isMaster":"true","isSlave":"false","indexVersion":1259974360057,"generation":1573,"backup":["startTime","Mon Apr 05 14:28:46 BST 2010","fileCount",17,"status","success","snapshotCompletedAt","Mon Apr 05 14:28:47 BST 2010"]},"WARNING":"This response format is experimental. It is likely to change in the future."} Either way, you'll need to have some sort of parsing logic or formatting to get just the index size bit.