this code
FSDirectory fd = FSDirectory.getDirectory("index", false);
RAMDirectory rd = new RAMDirectory();
IndexWriter RAMWriter = new IndexWriter(rd, new StandardAnalyzer(), true);
for (int i = 0; i < args.length; i++ )
indexDocs(RAMWriter, new File(args[i]));
RAMWriter.optimize();
IndexWriter FSWriter = new IndexWriter(fd, new StandardAnalyzer(), true);
FSWriter.addIndexes(new Directory[] {rd});
RAMWriter.close();
FSWriter.close();
gives me an exception after indexing all of the files.
caught a class java.io.IOException
with message: Lock obtain timed out
which lock in which directory?
Herb....
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]