You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Na_D <na...@zaloni.com> on 2010/06/29 15:52:56 UTC
Cache hits exposed by API
This is just an enquiry.I just wanted to know if the cache hit rates of solr
exposed via the API of solr?
--
View this message in context: http://lucene.472066.n3.nabble.com/Cache-hits-exposed-by-API-tp930602p930602.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Cache hits exposed by API
Posted by Na_D <na...@zaloni.com>.
Thanks ,
I am really looking forward to the SolrInfoMBeanHandler .
As of now I am working with the parsing idea .
--
View this message in context: http://lucene.472066.n3.nabble.com/Cache-hits-exposed-by-API-tp930602p962654.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Cache hits exposed by API
Posted by Chris Hostetter <ho...@fucit.org>.
: 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
Re: Cache hits exposed by API
Posted by Lance Norskog <go...@gmail.com>.
Yes, the StatsComponent returns the values in an XML.
http://wiki.apache.org/solr/StatsComponent
On Tue, Jun 29, 2010 at 7:23 AM, Na_D <na...@zaloni.com> wrote:
>
>
>
> 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.
>
> Thanks !
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Cache-hits-exposed-by-API-tp930602p930696.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
--
Lance Norskog
goksron@gmail.com
Re: Cache hits exposed by API
Posted by Na_D <na...@zaloni.com>.
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.
Thanks !
--
View this message in context: http://lucene.472066.n3.nabble.com/Cache-hits-exposed-by-API-tp930602p930696.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Cache hits exposed by API
Posted by Markus Jelsma <ma...@buyways.nl>.
Hi,
De AdminRequestHandler exposes a JSP [1] that'll return a nice XML document
with all the information you need about cache statistics and other.
[1]: http://localhost:8983/solr/admin/stats.jsp
Cheers,
On Tuesday 29 June 2010 15:52:56 Na_D wrote:
> This is just an enquiry.I just wanted to know if the cache hit rates of
> solr exposed via the API of solr?
>
Markus Jelsma - Technisch Architect - Buyways BV
http://www.linkedin.com/in/markus17
050-8536620 / 06-50258350