lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jamie <ja...@stimulussoft.com>
Subject Re: Lucene Search Error: Java.io.IOException: Bad file descriptor
Date Wed, 23 Jul 2008 16:33:39 GMT
Hi Matthew

Thanks in advance for the suggestion.

Which file do you think does not exist?

This is what we have:

_15zw.cfs  _19od.cfs  _1a5d.cfs  _1a7n.cfs  _1ahf.cfs  _1ahh.cfs  
_qzl.cfs       segments.gen
_1993.cfs  _1a0w.cfs  _1a7c.cfs  _1a9m.cfs  _1ahg.cfs  _1ahi.cfs  
segments_158j

Aside from Luke (which requires a GUI), it is there a command line 
utility that can check the integrity of the index?

Jamie

Matthew Hall wrote:
> Did you try to open the index using Luke?
>
> Luke will be able to tell you whether or not the index is in  fact 
> corrupted, but looking at your stack trace, it almost looks like the 
> file.. simply isn't there?
>
> Matt
>
> Jamie wrote:
>> Hi Everyone
>>
>> I am getting the the following error when executing  Hits hits = 
>> searchers.search(query, queryFilter, sort):
>>
>> 18007414-java.io.IOException: Bad file descriptor
>> 18007455-       at java.io.RandomAccessFile.seek(Native Method)
>> 18007504-       at 
>> org.apache.lucene.store.FSDirectory$FSIndexInput.readInternal(FSDirectory.java:545)

>>
>> 18007592-       at 
>> org.apache.lucene.store.BufferedIndexInput.readBytes(BufferedIndexInput.java:131)

>>
>> 18007678-       at 
>> org.apache.lucene.index.CompoundFileReader$CSIndexInput.readInternal(CompoundFileReader.java:240)

>>
>> -- 
>> 18009148-       at 
>> org.apache.lucene.search.FieldSortedHitQueue.getCachedComparator(FieldSortedHitQueue.java:168)

>>
>> 18009247-       at 
>> org.apache.lucene.search.FieldSortedHitQueue.<init>(FieldSortedHitQueue.java:56)

>>
>> 18009332-       at 
>> org.apache.lucene.search.TopFieldDocCollector.<init>(TopFieldDocCollector.java:43)

>>
>> 18009419-       at 
>> org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:122)
>> 18009493-       at 
>> org.apache.lucene.search.MultiSearcherThread.run(ParallelMultiSearcher.java:250)

>>
>>
>> Does this mean the index is corrupted? Any idea why it would be 
>> corrupted?
>>
>> Jamie
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>


-- 
Stimulus Software - MailArchiva
Email Archiving And Compliance
USA Tel: +1-713-366-8072 ext 3
UK Tel: +44-20-80991035 ext 3
Email: jamie@stimulussoft.com
Web: http://www.mailarchiva.com




---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message