lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Terry Smith <sheb...@gmail.com>
Subject Re: How to read multiple indices in parallel.
Date Tue, 07 Apr 2015 13:45:45 GMT
Gimantha,

With Lucene 5.0 you can pass in an ExecutorService to the constructor of
your IndexSearcher and it will search the segments in parallel if you use
one of the IndexSearcher.search() methods that returns a TopDocs (and don't
supply your own Collector).

The not-yet-released Lucene 5.1 includes some changes (LUCENE-6294
<https://issues.apache.org/jira/browse/LUCENE-6294>) that enable better
parallel query support.

--Terry


On Tue, Apr 7, 2015 at 8:09 AM, Gimantha Bandara <gimantha@wso2.com> wrote:

> Hi all,
>
> As I can see the Multireader is reading the multiple indices sequentially
> (correct me if I am wrong). So using a IndexSearcher on a multireader will
> also perform sequential searches right? Is there a lucene-built-in class to
> search several indices parallely?
>
> --
> Gimantha Bandara
> Software Engineer
> WSO2. Inc : http://wso2.com
> Mobile : +94714961919
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message