Re: MultiReader and MultiSearcher

2006-04-12 Thread Peter Keegan
Correction: the doc order is fine. My test was based on the existing 'TestMultiSearcher', and I hadn't noticed the swapping of the index order here: // VITAL STEP:adding the searcher for the empty index first, before the searcher for the populated index searchers[0] = new IndexSear

Re: MultiReader and MultiSearcher

2006-04-11 Thread Doug Cutting
Peter Keegan wrote: Oops. I meant to say: Does this mean that an IndexSearcher constructed from a MultiReader doesn't merge the search results and sort the results as if there was only one index? It doesn't have to, since a MultiReader *is* a single index. A quick test indicates that it does

Re: MultiReader and MultiSearcher

2006-04-11 Thread Yonik Seeley
On 4/11/06, Peter Keegan <[EMAIL PROTECTED]> wrote: > Oops. I meant to say: Does this mean that an IndexSearcher constructed from > a MultiReader doesn't merge the search results and sort the results as if > there was only one index? That's how I answered it. A single search is done... the "mergin

Re: MultiReader and MultiSearcher

2006-04-11 Thread Peter Keegan
Oops. I meant to say: Does this mean that an IndexSearcher constructed from a MultiReader doesn't merge the search results and sort the results as if there was only one index? A quick test indicates that it does merge the results properly, however there is a difference in the order of documents wi

Re: MultiReader and MultiSearcher

2006-04-11 Thread Yonik Seeley
On 4/11/06, Peter Keegan <[EMAIL PROTECTED]> wrote: > Does this mean that MultiReader doesn't merge the search results and sort > the results as if there was only one index? Correct, it doesn't. It supports the lower level primitives like TermEnum and TermDocs that searches use to run. A term qu

Re: MultiReader and MultiSearcher

2006-04-11 Thread Peter Keegan
Does this mean that MultiReader doesn't merge the search results and sort the results as if there was only one index? If not, does it simply concatenate the results? Peter On 4/11/06, Yonik Seeley <[EMAIL PROTECTED]> wrote: > > On 4/11/06, Peter Keegan <[EMAIL PROTECTED]> wrote: > > Could you

Re: MultiReader and MultiSearcher

2006-04-11 Thread Yonik Seeley
On 4/11/06, Peter Keegan <[EMAIL PROTECTED]> wrote: > Could you explain why an IndexSearcher constructed from multiple readers is > faster than a MultiSearcher constructed from same readers? The "convergence layer" is a level lower for a MultiReader vs a MultiSearcher. A MultiReader is an IndexRe

Re: MultiReader and MultiSearcher

2006-04-11 Thread Peter Keegan
Yonik, Could you explain why an IndexSearcher constructed from multiple readers is faster than a MultiSearcher constructed from same readers? Thanks, Peter On 4/10/06, Yonik Seeley <[EMAIL PROTECTED]> wrote: > > On 4/10/06, oramas martín <[EMAIL PROTECTED]> wrote: > > Is there any performance

Re: MultiReader and MultiSearcher

2006-04-10 Thread Yonik Seeley
On 4/10/06, oramas martín <[EMAIL PROTECTED]> wrote: > Is there any performance (or other) difference between using an > IndexSearcher initialized with a MultiReader instead of using a > MultiSearcher? Yes, the IndexSearcher(MultiReader) solution will be faster. -Yonik http://incubator.apache.org

MultiReader and MultiSearcher

2006-04-10 Thread oramas martín
Is there any performance (or other) difference between using an IndexSearcher initialized with a MultiReader instead of using a MultiSearcher? Thanks, Jose L. Oramas

Re: How do lucene IDs work with MultiReader and MultiSearcher?

2005-06-21 Thread Erik Hatcher
f indexes, I get the right document back. (i.e. my hits object gives me a lucene ID of 5 for my first hit, and if I ask the multireader for document with lucene ID 5, I get the same document) Is this always going to be the case? Do I simply have to ensure that I open the MultiReader and Mu

How do lucene IDs work with MultiReader and MultiSearcher?

2005-06-21 Thread Nick Burch
ts object gives me a lucene ID of 5 for my first hit, and if I ask the multireader for document with lucene ID 5, I get the same document) Is this always going to be the case? Do I simply have to ensure that I open the MultiReader and MultiSearcher with the indexes in the right order to ensure th