Hi I was using a RAMDirectory and this was working fine but have now moved over to a filesystem directory to preserve space, the directory is just initialized once
   directory = new RAMDirectory();
directory = FSDirectory.getDirectory(Platform.getPlatformLicenseFolder()+ "/" + TAG_BROWSER_INDEX);

but I create an IndexReader as required
    IndexReader ir = IndexReader.open(directory);
and then close it when Ive finished with it.

but sometimes it is failing with
   no segments* file found: files:
interestingly no file is specified in the error message whereas other reporters of this message show a reference to an actual file in the message.

My code is multithreaded so Im wondering if the problem is that two thread have both opened an IndexReader, or one thread is using an IndexWriter to add a document, whilst another is trying to read. But I wasnt aware either of these cases was not allowed, any ideas ?

thanks Paul



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

Reply via email to