Boost recent documents in SOLR

This is going to be a very short blog entry.

In SOLR you can control boosting at query time with the help of a boostfunction.

A common use case is to boost recent documents with a function that takes the age of a document into account.

Since this function shouldn't be liniear its common to use the recip function - like stated here and here for example.

I found it hard to find the correct values for the recip function - and so I wrote a little helper where you specify two points and get the correct parameters to use in the recip function:

Click here to calculate recip paramaters for solr

blog comments powered by Disqus