You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by WATHELET Thomas <th...@europarl.europa.eu> on 2006/06/22 15:01:05 UTC

Can't open index

I'm creating my index file and in the same time I try to do some
searches inside.
Sometimes I retrieve this error message:
"\\tradluxstmp01\JavaIndex\tra\index_FR\_335.fnm (The system cannot find
the file specified)"
What I have to do or what's happen?

Re: Can't open index

Posted by James Pine <ge...@yahoo.com>.
Hey Thomas,

It looks like your index file(s) are being stored on a
remote file system. Is it possible that the network
connection fails sometimes during your
indexing/searching operation?

If that's not the issue, you mention that you're
creating your index file at the same time that you're
searching it. That's ok, but you can only have one
IndexWriter and one IndexReader accessing the same
index concurrently.

In addition if you're using an IndexReader to delete
documents from an index, you need to close that
IndexReader before opening a new IndexWriter with that
index. The reverse also holds true i.e. if you have an
IndexWriter that is open you need to close it before
opening up a new IndexReader on the same index.

If you're doing a lot of opening/closing of Readers
and Writers maybe it's possible that some
merge/optimizations are taking place during the
indexing process that cause a file not found error?

JAMES

--- WATHELET Thomas
<th...@europarl.europa.eu> wrote:

> I'm creating my index file and in the same time I
> try to do some
> searches inside.
> Sometimes I retrieve this error message:
> "\\tradluxstmp01\JavaIndex\tra\index_FR\_335.fnm
> (The system cannot find
> the file specified)"
> What I have to do or what's happen?
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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