On 3/21/06, Brian <[EMAIL PROTECTED]> wrote: > I had assumed since I had multiple indexes, > that meant I need to perform a MultiSearch. However > several people have mentioned MultiReader. What's the > difference, and what's the benefit of one over the > other??
A MultiSearcher can search over Searchables, which can be remote, etc. A MultiReader is for local indicies. When you open an IndexReader or IndexSearcher on a single index with multiple segments, MultiReader is actually used under the covers. You can also instantiate a MultiReader with multiple IndexReaders. An IndexSearcher with a MultiReader (when you can use it) should be faster and more efficient than a MultiSearcher across multiple IndexSearchers. -Yonik http://incubator.apache.org/solr Solr, The Open Source Lucene Search Server --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]