title: SOLR - Boost function (bf) to increase score of documents whose date is closest to NOW
body: <p>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. </p>
  
  <p>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.</p>
  
  <p>Can anyone tell me how to do it please?</p>
  
  <p>Thanks</p>