Hi Markus;

It doesn't give me how many documents updated from last commit.

2013/7/18 Markus Jelsma <markus.jel...@openindex.io>

> Not your updateHandler, that only shows number about what it's doing and
> it can be restarted. Check your cores:
> host:port/solr/admin/cores
>
>
> -----Original message-----
> > From:Furkan KAMACI <furkankam...@gmail.com>
> > Sent: Thursday 18th July 2013 15:46
> > To: solr-user@lucene.apache.org
> > Subject: Re: How can I learn the total count of how many documents
> indexed and how many documents updated?
> >
> > Hi Shawn;
> >
> > This is what I see when I look at mbeans:
> > <lst name="UPDATEHANDLER"><lst name="updateHandler"><str
> > name="class">org.apache.solr.update.DirectUpdateHandler2</str><str
> > name="version">1.0</str><str name="description">Update handler that
> > efficiently directly updates the on-disk main lucene index</str><str
> > name="src">$URL$</str>
> > <lst name="stats">
> > <long name="commits">41</long>
> > <str name="autocommit maxTime">15000ms</str>
> > <int name="autocommits">37</int>
> > <int name="soft autocommits">0</int>
> > <long name="optimizes">2</long>
> > <long name="rollbacks">0</long>
> > <long name="expungeDeletes">0</long>
> > <long name="docsPending">0</long>
> > <long name="adds">0</long>
> > <long name="deletesById">0</long>
> > <long name="deletesByQuery">0</long>
> > <long name="errors">0</long>
> > <long name="cumulative_adds">211453</long>
> > <long name="cumulative_deletesById">0</long>
> > <long name="cumulative_deletesByQuery">0</long>
> > <long name="cumulative_errors">0</long>
> > </lst></lst></lst>
> >
> > I think that there is no information about what I look for?
> >
> > 2013/7/18 Shawn Heisey <s...@elyograg.org>
> >
> > > On 7/17/2013 8:06 AM, Furkan KAMACI wrote:
> > > > I have crawled some web pages and indexed them at my SolrCloud(Solr
> > > 4.2.1).
> > > > However before I index them there was already some indexes. I can
> > > calculate
> > > > the difference between current and previous document count. However
> it
> > > > doesn't mean that I have indexed that count of documents. Because
> urls of
> > > > websites are unique ids at my system. So it means that some of
> documents
> > > > updated and they did not increased document count.
> > > >
> > > > My question is that: How can I learn the total count of how many
> > > documents
> > > > indexed and how many documents updated?
> > >
> > > Look at the update handler statistics.  Your application should record
> > > the numbers there, then you can check the handler statistics again and
> > > note the differences.  Here's a URL that can give you those statistics.
> > >
> > > http://server:port/solr/mycollectionname/admin/mbeans?stats=true
> > >
> > > They are also available in the UI on the UPDATEHANDLER section of
> > > Plugins / Stats, but you can't really use that in a program.
> > >
> > > By setting the request handler path on a query object to /admin/mbeans
> > > and setting the stats parameter, you can get this information with
> SolrJ.
> > >
> > > Thanks,
> > > Shawn
> > >
> > >
> >
>

Reply via email to