lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken Krugler <>
Subject Re: Document "freshness" and Boost Functions
Date Wed, 17 Jan 2007 15:46:22 GMT
>On 1/17/07, Luis Neves <> wrote:
>>...I see that is possible to use
>>"Boost Functions" to influence the score. How would that work in order to
>>improve the score of recent documents? (I have a timestamp field in the
>I've been using expressions like these in boolean queries, based on  a
>"broadcast_date" field:
>Where recip computes an age-based score, and linear is used to boost it.
>and also the list archives, these functions have been discussed
>I'm not sure off the top of my head how to use this with dismax 
>queries though.

There's another trick, described by Andrzej here:

You have another field such as days: where you write the same token 
(e.g. "1") the number of times that matches the age of your document 
(starting from some reasonable base date). Then add +days:1 to your 
query and Lucene winds up boosting the results by how recent they are.

-- Ken
Ken Krugler
Krugle, Inc.
+1 530-210-6378
"Find Code, Find Answers"

View raw message