Hi, Depending on use case the functions max, min, scale and map can be used really well to regulate the output of recip. Check their docs and you'll surely work it out. Perhaps scale will work best for you.
Cheers -----Original message----- > From:Shawn Heisey <s...@elyograg.org> > Sent: Mon 14-Jan-2013 22:50 > To: solr-user@lucene.apache.org > Subject: Need another way to boost relavence of recent content > > I implemented the date boosting function outline here, placed into the > boost parameter in the request handler: > > http://wiki.apache.org/solr/FunctionQuery#Date_Boosting > > Today it was reported to me that this boosting is producing terrible > results. A close look at the description reveals that this isn't so > much a boost on new content as it is a negative boost on old content. > This isn't what I want. > > What I need to have happen is that content added today gets a small (and > easily configurable) boost, content added yesterday gets a slightly > smaller boost, tapering down to approximately two to four weeks in the > past, at which point there would be no boost at all. A document that's > a month old would have the same boost (none) as a document that's 50 > years old. > > Can someone figure out the formula for this? > > Thanks, > Shawn >