lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Cache hits exposed by API
Date Fri, 02 Jul 2010 20:12:55 GMT

: Yes, the StatsComponent returns the values in an XML.

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 


  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message