Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 29195 invoked from network); 11 Apr 2006 20:22:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Apr 2006 20:22:00 -0000 Received: (qmail 43541 invoked by uid 500); 11 Apr 2006 20:21:54 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 43519 invoked by uid 500); 11 Apr 2006 20:21:54 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 43508 invoked by uid 99); 11 Apr 2006 20:21:54 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Apr 2006 13:21:54 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of peterlkeegan@gmail.com designates 64.233.184.225 as permitted sender) Received: from [64.233.184.225] (HELO wproxy.gmail.com) (64.233.184.225) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Apr 2006 13:21:53 -0700 Received: by wproxy.gmail.com with SMTP id 37so1195810wra for ; Tue, 11 Apr 2006 13:21:32 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=aZpYbVobYddSwC1yvgA+P1m8iADAk0JDDRMCgUYvaVjJltOwpGoQJBTm5YZfi+h6PEyPywvd1R0f77Dy5jikavjcYl8cjJhZSOMl8hJJrSJD4X644nu8kdd0kwUM9euSwxaOsiq6K59YnaWeIoLd4jSTY7OBeueukJiFllUmAyA= Received: by 10.54.72.15 with SMTP id u15mr690559wra; Tue, 11 Apr 2006 13:21:15 -0700 (PDT) Received: by 10.54.114.15 with HTTP; Tue, 11 Apr 2006 13:21:15 -0700 (PDT) Message-ID: Date: Tue, 11 Apr 2006 16:21:15 -0400 From: "Peter Keegan" To: java-user@lucene.apache.org Subject: Re: MultiReader and MultiSearcher In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6666_24473018.1144786875278" References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_6666_24473018.1144786875278 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 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). Peter On 4/11/06, Yonik Seeley wrote: > > On 4/11/06, Peter Keegan 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 query is run > exactly the same way on a MultiReader as it is on a single segment > IndexReader. In fact, if you open up an IndexReader on an index with > multiple segments, it constructs a MultiReader under-the-covers. > > -Yonik > http://incubator.apache.org/solr Solr, The Open Source Lucene Search > Server > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > ------=_Part_6666_24473018.1144786875278--