: Yes, the StatsComponent returns the values in an XML.
: 
: http://wiki.apache.org/solr/StatsComponent

the StatsComponent returns stats about document values -- not stats from 
the SolrInfoMBeans.


: >  I knew that  the jsp page=  http://localhost:8983/solr/admin/stats.jsp
: >  shows the different statistics.... but actually I am trying to read the hit
: > rate of the solr cache's via a Java Code.That's why I asked if the same is
: > exposed via Solr API's...Please share if you know about the same.

a) if you "view source" when looking at that URL, you'll see that it's 
actually am XML response that includes stylsheet info so your browser can 
display it ats HTML -- so it's entirely possible to parse that 
programaticly form Java.

b) in future versions of Solr there will be a SolrInfoMBeanHandler that 
will give you access to all of those same stats from a RequestHandler that 
plays nicely with SolrJ ... the handler is committed into trunk, and 
branch 3x, and if you are feelling up to it should be fairly compatible 
with 1.4, so you could compile it into your own jav and load it as a 
plugin.


-Hoss

Reply via email to