Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 64241 invoked from network); 5 Aug 2009 15:01:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Aug 2009 15:01:57 -0000 Received: (qmail 2101 invoked by uid 500); 5 Aug 2009 15:02:03 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 2027 invoked by uid 500); 5 Aug 2009 15:02:03 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 1979 invoked by uid 99); 5 Aug 2009 15:02:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2009 15:02:03 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of markrmiller@gmail.com designates 209.85.217.218 as permitted sender) Received: from [209.85.217.218] (HELO mail-gx0-f218.google.com) (209.85.217.218) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2009 15:01:51 +0000 Received: by gxk18 with SMTP id 18so187168gxk.5 for ; Wed, 05 Aug 2009 08:01:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=sYDydrE7D+HrPH527TsaM5nDcRLZEoo6eTbxgK2eKuo=; b=NAUGC8fBKeqbpCTrNfQzBm5I8xZJWKBpsYxH38fqh5a9ZozvTqZyvmMWEoPfLDJaF7 xps+vdR43sR2H5NCWWkonidAV1q9p81cyR+clUSS3U7uRBQ2x2wzyuQhHkOOsRM+dO5N xwgfKQtbJ6iXy7lSO2HN9S0gwDUKjaLmszC6M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=WO+B9nBgFOTHO+tBWEEo9LUGsQRa/DvBCWPtpFBGpc/1cPBo255yUrPovx5EIiu6ze euUDwFo1lRdta1u4FNIz5Xxpd1rWwnZWvCBPHerzYpumTHulDuyFzlc0I2+S5mf964Uh Xcr0uAxNMCOUFWSfttUV7yy4GAGBLKVsUPAGk= Received: by 10.90.93.17 with SMTP id q17mr1642878agb.14.1249484490133; Wed, 05 Aug 2009 08:01:30 -0700 (PDT) Received: from ?192.168.1.104? (ool-44c639d9.dyn.optonline.net [68.198.57.217]) by mx.google.com with ESMTPS id 30sm3095526agc.19.2009.08.05.08.01.27 (version=SSLv3 cipher=RC4-MD5); Wed, 05 Aug 2009 08:01:28 -0700 (PDT) Message-ID: <4A799EC7.5080302@gmail.com> Date: Wed, 05 Aug 2009 11:01:27 -0400 From: Mark Miller User-Agent: Thunderbird 2.0.0.22 (X11/20090608) MIME-Version: 1.0 To: java-dev@lucene.apache.org Subject: Re: SpanQuery and BoostingTermQuery oddities References: <28A40832-94BB-4A44-8F8A-578D1D2D195A@apache.org> <4A799224.9010801@gmail.com> <222250B0-DC0F-47A2-A515-3C7A77CE0B73@apache.org> In-Reply-To: <222250B0-DC0F-47A2-A515-3C7A77CE0B73@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Grant Ingersoll wrote: > > On Aug 5, 2009, at 10:07 AM, Mark Miller wrote: >> Yeah - SpanQuery's don't use the boosts from subspans - it just uses >> the idf for the query terms and the span length I believe - and the >> boost for the top level Query. >> >> Is that the right way to go? I guess Doug seemed to think so? I don't >> know. It is sort of a bug that lower boosts would be ignored right? >> There is an issue for it somewhere. >> >> It gets complicated quick to change it - all of a sudden you need >> something like BooleanQuery ... >> > > Not sure it needs BooleanQuery, but it does seem like it should take > into account the scores of the subclauses (regardless of > BoostingTermQuery). There is a spot in creating the SpanScorer where > it gets the value from the QueryWeight, but this QueryWeight does not > account for the subclauses QueryWeights. > It doesn't need BooleanQuery - it needs BooleanQuery type logic - which is fairly complicated. At least to do it right I think. I don't have a clear memory of it, but I started to try and address this once and ... well I didn't continue. -- - Mark http://www.lucidimagination.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org