Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 6911 invoked from network); 1 Feb 2008 13:03:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Feb 2008 13:03:47 -0000 Received: (qmail 3921 invoked by uid 500); 1 Feb 2008 13:03:23 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 3738 invoked by uid 500); 1 Feb 2008 13:03:22 -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 3727 invoked by uid 99); 1 Feb 2008 13:03:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 05:03:22 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [208.97.132.83] (HELO spunkymail-a13.g.dreamhost.com) (208.97.132.83) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 13:03:06 +0000 Received: from [192.168.0.3] (adsl-074-229-189-244.sip.rmo.bellsouth.net [74.229.189.244]) by spunkymail-a13.g.dreamhost.com (Postfix) with ESMTP id EC373129B34 for ; Fri, 1 Feb 2008 05:02:57 -0800 (PST) Message-Id: <6DF4A122-877C-44A6-8FC2-CF861C1E6732@apache.org> From: Grant Ingersoll To: java-user@lucene.apache.org In-Reply-To: <295da8fe0801311149p23bfdfa4vcf87d5cfcfd44ba@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Subject: Re: Different levels of negative boosting Date: Fri, 1 Feb 2008 08:02:51 -0500 References: <295da8fe0801311149p23bfdfa4vcf87d5cfcfd44ba@mail.gmail.com> X-Mailer: Apple Mail (2.915) X-Virus-Checked: Checked by ClamAV on apache.org Hi Prabin, Can you give an example of what you would like a query to look like? Lucene doesn't do negative boosts (ok, w/ a patch, I think it can, but...) At any rate, the boosts are relative, so perhaps you just lower the boost to be very small for the "bad" terms and raise it higher for the good terms. What is the end goal of what you are trying to find? Perhaps there are some alternatives. -Grant On Jan 31, 2008, at 2:49 PM, prabin meitei wrote: > Hi, I want to give different levels of negative boost (reduce the > score) to > documents for different matching queries. How it can be done?? > Googling I > found out this link > http://wiki.apache.org/jakarta-lucene/CommunityContributions but > it just > gives the option of giving single level negative boost. > is there any way of having multiple matching queries and give them > different > negative boosts??? > > > Regards, > Prabin -------------------------- Grant Ingersoll http://lucene.grantingersoll.com http://www.lucenebootcamp.com Lucene Helpful Hints: http://wiki.apache.org/lucene-java/BasicsOfPerformance http://wiki.apache.org/lucene-java/LuceneFAQ --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org