concept MultiSearcher in category lucene

appears as: MultiSearcher, MultiSearcher
Lucene in Action, Second Edition

This is an excerpt from Manning's book Lucene in Action, Second Edition.

Whatever the reason, Lucene provides two useful classes for searching across multiple indexes. We’ll first meet MultiSearcher, which uses a single thread to perform searching across multiple indexes. Then we’ll see ParallelMultiSearcher, which uses multiple threads to gain concurrency.

5.8.1. Using MultiSearcher

With MultiSearcher, all indexes can be searched with the results merged in a specified (or descending-score, by default) order. Using MultiSearcher is comparable to using IndexSearcher, except that you hand it an array of IndexSearchers to search rather than a single directory (so it’s effectively a decorator pattern and delegates most of the work to the subsearchers).