lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Latter, Antoine" <>
Subject RE: Easy way to tell if there are pending documents
Date Tue, 15 Nov 2011 21:22:50 GMT
Thank you, that does help - but I am more looking for a way to get at this programmatically.

-----Original Message-----
From: Otis Gospodnetic [] 
Sent: Tuesday, November 15, 2011 11:22 AM
Subject: Re: Easy way to tell if there are pending documents


On Solr Admin Stats page search for "docsPending".  I think this is what you are looking

Sematext :: :: Solr - Lucene - Nutch Lucene ecosystem search ::

>From: "Latter, Antoine" <>
>To: "''" <>
>Sent: Monday, November 14, 2011 11:39 AM
>Subject: Easy way to tell if there are pending documents
>Hi Solr,
>Does anyone know of an easy way to tell if there are pending documents waiting for commit?
>Our application performs operations that are never safe to perform while commits are pending.
We make this work by making sure that all indexing operations end in a commit, and stop the
unsafe operations from running while a commit is running.
>This works great most of the time, except when we have enough disk space to add documents
to the pending area, but not enough disk space to do a commit - then the indexing operations
only error out after they've done all of their adds.
>It would be nice if the unsafe operation could somehow detect that there are pending documents
and abort.
>In the interim I'll have the unsafe operation perform a commit when it starts, but I've
been weeding out useless commits from my app recently and I don't like them creeping back

View raw message