IndexSearch very slow after reopening the index

2010-10-14 Thread subwayne
Hi, I'am facing some problems in using Lucene. The index I am using is constructed like this: try { Analyzer analyzer = new SnowballAnalyzer(Version.LUCENE_30, "English"); Directory dir = MMapDirectory.open(index); IndexWriter writer = new IndexWriter(dir, analyzer, MaxFieldLength.LIMITED)

Re: IndexSearch very slow after reopening the index

2010-10-14 Thread subwayne
Hi Ian, thank you for your quick response. I am running Lucene on Ubuntu 10.04, 64 bit. I switched from MMapDirectory to NIOFSDirectory without any significant changes in performance. The Lucene version running is 3.0.2. I followed your advice and opened the IndexSearcher after I added all docume

Re: IndexSearch very slow after reopening the index

2010-10-14 Thread subwayne
Ok, I read the Wiki page related to improving the searching speed and adopted some advices. One of the slow queries is simply. Here are some: plaintext:guid 107.0 ms resultSet.totalHits = 1 plaintext:allianc 51.0 ms resultSet.totalHists = 1 plaintext:engin 46.0 ms resultSet.totalHits = 1 plain