Hello, That stats page is really XML + XSLT that transforms the XML to HTML. View the source of the stats page. That should make it very easy to parse the stats response/page and extract the data you need.
Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ----- Original Message ---- > From: iamithink <leed...@gmail.com> > To: solr-user@lucene.apache.org > Sent: Monday, June 1, 2009 1:17:32 PM > Subject: How to get number of optimizes > > > Hello, > > I'm looking for a simple way to automate (in a shell script) a request for > the number of times an index has been optimized (since the Solr webapp has > last started). I know that this information is available on the Solr stats > page (http://host:port/solr/admin/stats.jsp) under Update > Handlers/stats/optimizes, but I'm looking for a simpler way than to retrieve > the page using wget or similar and parse the HTML. More generally, is there > a convenient way to get at the other data presented on the Stats page? I'm > currently using Solr 1.2 but will be migrating to 1.3 soon in case that > makes a difference. > > Thanks... > -- > View this message in context: > http://www.nabble.com/How-to-get-number-of-optimizes-tp23818563p23818563.html > Sent from the Solr - User mailing list archive at Nabble.com.