Long Query Performance

2007-01-22 Thread Somnath Banerjee
Hi All, I have created a 8GB index of almost 2 million documents. My requirement is to run nearly 0.72 million query on this index. Each query consists of 200 - 400 words. I have created a Boolean Query by ORing these words. But each query is taking nearly 5 - 10 seconds to execute ( 2

Re: Long Query Performance

2007-01-22 Thread Somnath Banerjee
Curtin <[EMAIL PROTECTED]> wrote: Somnath Banerjee wrote: >I have created a 8GB index of almost 2 million documents. My > requirement is to run nearly 0.72 million query on this index. Each query > consists of 200 - 400 words. I have created a Boolean Query by ORing th

Re: Long Query Performance

2007-01-23 Thread Somnath Banerjee
Thanks for all the reply. I'll try the methods suggested by you will post the result of my experiment. Chris, I was measuring the query time only. I have increased the heap size of java to 1 GB. Now, 5 - 8 words query is taking about 0.1 - 0.4 second. That's reasonable I guess. Thanks, Somnath

Re: Long Query Performance

2007-01-23 Thread Somnath Banerjee
Here is the code. Let me know if you need any clarification // MaxConcepts is set to 100 long stTime = System.currentTimeMillis(); // bq is the Boolean query constructed out of the title of the query document TopDocs docs = searcher.search(bq, null, MaxConcepts); // Store the title of the resu