Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 73484 invoked from network); 10 Nov 2010 12:25:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 12:25:48 -0000 Received: (qmail 77686 invoked by uid 500); 10 Nov 2010 12:26:17 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 77124 invoked by uid 500); 10 Nov 2010 12:26:13 -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 77114 invoked by uid 99); 10 Nov 2010 12:26:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 12:26:12 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rcmuir@gmail.com designates 209.85.161.48 as permitted sender) Received: from [209.85.161.48] (HELO mail-fx0-f48.google.com) (209.85.161.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 12:26:06 +0000 Received: by fxm7 with SMTP id 7so295310fxm.35 for ; Wed, 10 Nov 2010 04:25:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=OystFFUDk84da/OUmROZYwF+zuAZtQNxnAMFkZU24rU=; b=kfgI1JjmrRr/jevyDpEG0ffXbMq8OiGYrrmoI4hdVfNiHAxVgfyaANEQ3y/8zzTiVu pV+eYA2Pkz9KOCTK4VdSuPc0hhrC6OoRQiQfMOeTnXwKqyaUrHzxmQY84KrTff/T6u/L n4jt8jvGz7n4NomWjLgdPisiHzpvkAyUG2tI4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=w9zHLF2D5mclgBfwQeS7CUu9B4w3W9NjQlWOz0NOESJvKOeDZ3zcEQMorLpBlb4c/m 6nJpaVcKBXkCMUkDO95klN8CqZeHA3ZSkqs3XazRSoJaxFWhKnfdUgxkrWMcynKFjV6P WXj7dWgCPRJ52AF7HDXo+eqzxie/oJLqquafM= Received: by 10.204.113.74 with SMTP id z10mr7825473bkp.25.1289391944882; Wed, 10 Nov 2010 04:25:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.77.201 with HTTP; Wed, 10 Nov 2010 04:25:24 -0800 (PST) In-Reply-To: References: <018f01cb7efd$f771ff20$e655fd60$@thetaphi.de> From: Robert Muir Date: Wed, 10 Nov 2010 07:25:24 -0500 Message-ID: Subject: Re: Search returning documents matching a NOT range To: java-user@lucene.apache.org Cc: David Fertig Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Nov 10, 2010 at 7:00 AM, Robert Muir wrote: > On Mon, Nov 8, 2010 at 6:45 AM, Ian Lea wrote: >> This does seem extremely odd. =C2=A0David sent me a copy of his index an= d >> I've played around with it and also written a self-contained RAM index >> program, below, that shows the same problem, namely that if the second >> index has 1000+ docs the one and only doc in the first index is >> incorrectly matched if the search is done with a MultiSearcher. =C2=A0In >> answer to Uwe's question, it works correctly if use a single >> IndexSearcher on top of a MultiReader. > I played with your testcase, and it seems the rewrite() implementation is causing the strangeness you see. for your query: author:aaa -pubdate:[aaa TO bbb], here are the rewritten fo= rms: MultiReader case: +author:aaa -ConstantScore(pubdate:[aaa TO bbb]) MultiSearcher case: (+author:aaa -()) (+author:aaa -ConstantScore(pubdate:[aaa TO bbb])) --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org