Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 24725 invoked from network); 18 Aug 2009 14:12:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Aug 2009 14:12:46 -0000 Received: (qmail 19478 invoked by uid 500); 18 Aug 2009 14:12:10 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 15474 invoked by uid 500); 18 Aug 2009 14:11:54 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 13820 invoked by uid 99); 18 Aug 2009 14:02:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 14:02:02 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shiquanhe@gmail.com designates 209.85.210.173 as permitted sender) Received: from [209.85.210.173] (HELO mail-yx0-f173.google.com) (209.85.210.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 14:01:54 +0000 Received: by yxe3 with SMTP id 3so717508yxe.29 for ; Tue, 18 Aug 2009 07:01:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=7IkoRS+S6E1AiS/k60jmCd0U8uDV+yDLgrOszE7M9Fs=; b=EDPfQGJwQTM4CVNng1bC5tMvo4/livaRw1cNFOlS4Cv+Ss5m0cS+FRWXmJKkISkFzC TRAZPiP5J77e17nWT+EojZNTM8X9jhxV5n7A6QlUMvmqiLyAuOogTW7aAHm29fIyXW3z agzwDQlL9mRjVpdR0f55+QWaCAEiby6GZJCTE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=kNwqCfLeJ11puDgpitFFNewUCZGHqhQY/sJhIth+cgRkzqfpK2dp4PFxN9tRopMNvV VvDJBL/9dLyPtWcKZuFp6WguBcQFYNxkQ9NVcMIsLOM+3V92BKMNDHxivurhvbKkfQnR 9ZVsP4tbKNlnzLkYiZ8h8tkWXyHLDl343sDJc= MIME-Version: 1.0 Received: by 10.101.81.10 with SMTP id i10mr5458745anl.123.1250604093543; Tue, 18 Aug 2009 07:01:33 -0700 (PDT) Date: Tue, 18 Aug 2009 10:01:33 -0400 Message-ID: Subject: Is negative boost possible? From: Larry He To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001636ed71adc0163204716af442 X-Virus-Checked: Checked by ClamAV on apache.org --001636ed71adc0163204716af442 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi all, I am looking for a way to assign negative boost to a term in Solr query. Our use scenario is that we want to boost matching documents that are updated recently and penalize those that have not been updated for a long time. There are other terms in the query that would affect the scores as well. For example we construct a query similar to this: *:* field1:value1^2 field2:value2^2 lastUpdateTime:[NOW/DAY-90DAYS TO *]^5 lastUpdateTime:[* TO NOW/DAY-365DAYS]^-3 I notice it's not possible to simply use a negative boosting factor in the query. Is there any way to achieve such result? Regards, Shi Quan He --001636ed71adc0163204716af442--