lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chong, Herb" <>
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]));

      IndexWriter FSWriter = new IndexWriter(fd, new StandardAnalyzer(), true);
      FSWriter.addIndexes(new Directory[] {rd});


gives me an exception after indexing all of the files.

caught a class
with message: Lock obtain timed out

which lock in which directory?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message