There is, it's called CheckIndex and it is a part of Lucene (and Lucene jars 
that come with Solr, I believe):

http://lucene.apache.org/java/2_4_1/api/org/apache/lucene/index/CheckIndex.html

 
Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



----- Original Message ----
> From: Nasseam Elkarra <nass...@bodukai.com>
> To: solr-user@lucene.apache.org
> Sent: Tuesday, March 24, 2009 4:21:50 PM
> Subject: Re: Solr index deletion
> 
> Correction: index was not deleted. The folder is still there with the index 
> files in it but a *:* query returns 0 results. Is there a tool to check the 
> health of an index?
> 
> Thanks,
> Nasseam
> 
> On Mar 24, 2009, at 11:49 AM, Otis Gospodnetic wrote:
> 
> > 
> > Somehow that sounds very unlikely.  Have you looked at logs?  What have you 
> found from Solr there?  I am not checking the sources, but I don't think 
> there 
> is any place in Solr where the index directory gets deleted.
> > 
> > Otis
> > --
> > Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
> > 
> > 
> > 
> > ----- Original Message ----
> >> From: Nasseam Elkarra 
> >> To: solr-user@lucene.apache.org
> >> Sent: Tuesday, March 24, 2009 2:35:22 PM
> >> Subject: Solr index deletion
> >> 
> >> On a few occasions, our development server crashed and in the process solr
> >> deleted the index folder. We are suspecting another app on the server 
> >> caused 
> an
> >> OutOfMemoryException on Tomcat causing all apps including solr to crash.
> >> 
> >> So my question is why is solr deleting the index? We are not doing any 
> updates
> >> to the index only reading from it so any insight would be appreciated.
> >> 
> >> Thank you,
> >> Nasseam
> > 

Reply via email to