Thank you, that does help - but I am more looking for a way to get at this programmatically.
-----Original Message----- From: Otis Gospodnetic [mailto:otis_gospodne...@yahoo.com] Sent: Tuesday, November 15, 2011 11:22 AM To: solr-user@lucene.apache.org Subject: Re: Easy way to tell if there are pending documents Antoine, On Solr Admin Stats page search for "docsPending". I think this is what you are looking for. Otis ---- Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch Lucene ecosystem search :: http://search-lucene.com/ >________________________________ >From: "Latter, Antoine" <antoine.lat...@legis.wisconsin.gov> >To: "'solr-user@lucene.apache.org'" <solr-user@lucene.apache.org> >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 in. > >Thanks, >Antoine > > >