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 IndexSearcher(indexStoreB); searchers[1] = new IndexSearcher(indexStoreA); Sorry about that, Peter On 4/11/06, Doug Cutting <[EMAIL PROTECTED]> wrote: > > 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 merge the results properly, however > > there is a difference in the order of documents with equal score. The > > MultiSearcher returns the higher doc first, but the IndexSearcher > returns > > the lowest doc first. I think docs of equal score are supposed to be > > returned in the order they were indexed (lower doc id first). > > If that's the case it is a bug. If you can reproduce this in a > standalone test, please submit it to Jira. > > Doug > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >