lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <lucenel...@danielnaber.de>
Subject Re: ParallelReader
Date Thu, 12 May 2005 21:59:22 GMT
On Thursday 12 May 2005 20:17, Doug Cutting wrote:

>  > Would folks find this useful?
>
> Since the general feedback was positive, I committed this.

It seems the IllegalArgumentException is never thrown, because the 
"readers" variable is never modified?

Unless I'm missing something, this code should throw an exception if the 
indexes have different sizes:

    IndexReader ir1 = IndexReader.open("/tmp/testindex1");
    IndexReader ir2 = IndexReader.open("/tmp/testindex2");
    ParallelReader pr = new ParallelReader();
    pr.add(ir1);
    pr.add(ir2);

Regards
 Daniel

-- 
http://www.danielnaber.de

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message