Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 24438 invoked from network); 11 Aug 2009 08:51:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Aug 2009 08:51:39 -0000 Received: (qmail 16266 invoked by uid 500); 11 Aug 2009 08:51:44 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 16185 invoked by uid 500); 11 Aug 2009 08:51:43 -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 16175 invoked by uid 99); 11 Aug 2009 08:51:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Aug 2009 08:51:43 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Aug 2009 08:51:34 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Man4D-0006Ck-0r for java-user@lucene.apache.org; Tue, 11 Aug 2009 01:50:49 -0700 Message-ID: <24913967.post@talk.nabble.com> Date: Tue, 11 Aug 2009 01:50:49 -0700 (PDT) From: bourne71 To: java-user@lucene.apache.org Subject: Query Boosting MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: garylkc@live.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am fairly new to Lucene and have encounter a problem with the search function i am trying to create using Lucene. When I search, lets say "news sharing", then the results return and display. Its fine up to this point until I check the ranking. Some results, although match only 1 of the 2 keywords, will have higher ranking. The problem is like describe below: Page 1 news - Total found 23 sharing - Total found 0 Page 2 news - Total found 1 sharing - Total found 21 This is understandable why Page 1 got better ranking, bcs it has more keyword found. But this will make the results return to be less relevant My current query is like the following: (url:sharing^2.0 content:sharing title:sharing^1.5) (url:news^2.0 content:news title:news^1.5) url:"sharing news"~2147483647^2.0 content:"sharing news"~2147483647 title:"sharing news"~2147483647^1.5 Is there anyway I can add an additional query that will give an additional boost to results that has both the keyword in it? -- View this message in context: http://www.nabble.com/Query-Boosting-tp24913967p24913967.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org