Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 37398 invoked from network); 20 Feb 2006 17:35:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Feb 2006 17:35:18 -0000 Received: (qmail 23405 invoked by uid 500); 20 Feb 2006 17:35:10 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 23376 invoked by uid 500); 20 Feb 2006 17:35:09 -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 23365 invoked by uid 99); 20 Feb 2006 17:35:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Feb 2006 09:35:09 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [69.55.225.129] (HELO ehatchersolutions.com) (69.55.225.129) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Feb 2006 09:35:08 -0800 Received: by ehatchersolutions.com (Postfix, from userid 504) id E6CA133C04F; Mon, 20 Feb 2006 12:34:47 -0500 (EST) Received: from [128.143.167.108] (d-128-167-108.bootp.Virginia.EDU [128.143.167.108]) by ehatchersolutions.com (Postfix) with ESMTP id 1B84733C021 for ; Mon, 20 Feb 2006 12:34:45 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: <43F9FAE8.5020202@allegromedical.com> References: <43F5EE18.6050900@curtin.com> <43F6249B.8070505@allegromedical.com> <43F62D2B.2060308@allegromedical.com> <43F9E8BD.9010002@allegromedical.com> <1140452460.8229.43.camel@murmansk> <43F9F9B3.4050806@allegromedical.com> <43F9FAE8.5020202@allegromedical.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <25FC3706-9399-4F31-968D-EC3F69EB3B79@ehatchersolutions.com> Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: span first query and boosting .. Date: Mon, 20 Feb 2006 12:34:36 -0500 To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.746.2) X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on javelina X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.1 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Feb 20, 2006, at 12:22 PM, Mufaddal Khumri wrote: > Hi, > > I do this: > > SpanFirstQuery fullPhraseInCategoryNamesQuery = new SpanFirstQuery > (new SpanTermQuery(new Term("categoryNames", "digital cameras")), 2); > fullPhraseInCategoryNamesQuery.setBoost(8); > > In my log output i get this: > > spanFirst(categoryNames:digit camera, 2)) > > Why cant I boost a span query? What am i doing wrong? You can boost any Query. However, the .toString is not showing the boost. Look at IndexSearcher.explain() results to see the effect of your boosts in action. Erik --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org