SOLR - Boost function (bf) to increase score of documents whose date is closest to NOW

Posted by Mechanic on Stack Overflow See other posts from Stack Overflow or by Mechanic
Published on 2009-09-28T13:12:37Z Indexed on 2010/04/20 16:23 UTC
Read the original article Hit count: 480

Filed under:
|

Hi all,

I have a solr instance containing documents which have a 'startTime' field ranging from last month to a year from now. I'd like to add a boost query/function to boost the scores of documents whose startTime field is close to the current time.

So far I have seen a lot of examples which use rord to add boosts to documents whom are newer but I have never seen an example of something like this.

Can anyone tell me how to do it please?

Thanks

© Stack Overflow or respective owner

Related posts about solr

Related posts about lucene