Is this the right way to use Lucene in multithread env?

2008-05-09 Thread wolvernie88
Hi, Here is what I am using Lucene. I build the index (from different data source) during midnight. I build a FSDirectory. Then I load it into RAMDirectory for the best performance. When I built it, I called IndexWriter.optimize() once. Once the index is built, I will never update it. I have

Re: Is this the right way to use Lucene in multithread env?

2008-05-09 Thread wolvernie88
may not benefit from explicit loading of the index into RAM. Try without it first. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message From: wolvernie88 [EMAIL PROTECTED] To: java-user@lucene.apache.org Sent: Friday, May 9, 2008 11:38:43 AM