Return-Path: Delivered-To: apmail-lucene-solr-user-archive@locus.apache.org Received: (qmail 53298 invoked from network); 15 Jul 2006 18:29:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Jul 2006 18:29:31 -0000 Received: (qmail 29440 invoked by uid 500); 15 Jul 2006 18:29:26 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 29403 invoked by uid 500); 15 Jul 2006 18:29:26 -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 29050 invoked by uid 99); 15 Jul 2006 18:29:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Jul 2006 11:29:25 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of yseeley@gmail.com designates 64.233.166.182 as permitted sender) Received: from [64.233.166.182] (HELO py-out-1112.google.com) (64.233.166.182) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Jul 2006 11:29:22 -0700 Received: by py-out-1112.google.com with SMTP id z59so1034496pyg for ; Sat, 15 Jul 2006 11:29:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rqvaR5c7/dZZMPL4KjfqQ5yFy/2fFe/cLqnvq4JO7XDTZ9z8W45aBLE5/BDhvN7JMc00PxNZpHOYlzs7gOU4ZGyrOSyvKvl7cZNPOsBr4Fhrqc1icjpsx5fomIjs4KCcFoK5OLI/obMV2/Da4hKId29ZNY2NjwT0kQW84dKSLx8= Received: by 10.35.135.12 with SMTP id m12mr1312492pyn; Sat, 15 Jul 2006 11:29:01 -0700 (PDT) Received: by 10.35.129.12 with HTTP; Sat, 15 Jul 2006 11:29:01 -0700 (PDT) Message-ID: Date: Sat, 15 Jul 2006 14:29:01 -0400 From: "Yonik Seeley" To: solr-user@lucene.apache.org Subject: Re: including "time" as a factor in relevance? In-Reply-To: <5A6786EA-D02E-4CE3-87E8-80F557C69293@whirlycott.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5A6786EA-D02E-4CE3-87E8-80F557C69293@whirlycott.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 7/15/06, WHIRLYCOTT wrote: > I need to have my search result relevance influenced by time. Older > things in my index are less relevant than newer things. I don't want > to do a strict sort by date. Is this supported somehow by using a > dismax request handler? Or if you have other hints, I'm eager to > know what they are. dismax handler has a bf (boosting function) parameter that may be used to specify a function over the date field. You could try something like setting bf to recip(rord(mydatefield),1,1000,1000)^0.5 A reciprocal function over the reverse ordinal of the date field, with a weight of .5 (adjust weight until you get the right balance) http://incubator.apache.org/solr/docs/api/org/apache/solr/request/DisMaxRequestHandler.html -Yonik