How much memory are you allocating for your JVM? Because you're
paying a huge search time penalty by opening and closing your
searcher sequentially, it would be a good thing to not do this.
But, as you say, if you're getting OOM errors, that's a problem.

What is the total size of all your indexes? That would help folks
give you better responses and perhaps suggest other ways of
solving your problem.....

Erick

On 3/14/07, senthil kumaran <[EMAIL PROTECTED]> wrote:

Hi.
    I have more index directories (>6) all in GB,and searching my query
with
single IndexSearcher  to all indexes one after another.i.e. I create one
IndexSearcher for index1 and search over that.Finally I close that and
create new IndexSearcher for index2 and so on. If i get 200 total results
then i don't go to search other index directories and i print 200 results
and exit from search.
    I need to get approximate total matching documents all over the
indexes
without going to search in other indexes.
    Please suggest me a easiest way to achieve this.

P.S: To avoid more memory usage and to reduce search timeI don't want to
search my query through all indexes if i got 200 results. MultiSearcher
create OOM error,  so that I'm using single IndexSearcher.


Thanks in Advance
Senthil

Reply via email to