lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chong, Herb" <HCho...@bloomberg.com>
Subject RE: example of using RAMDirectory
Date Mon, 26 Jan 2004 17:20:04 GMT
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: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message