Last modified: 2013-11-16 01:00:56 UTC
CirrusSearch needs wikinew's recent article boost to smoothly transition them to CirrusSearch.
Wikinews' recent article boost works like this: if < 30 days since last article update do not change score if 30 - 90 days since last artcile update then multiply score by 1-.7/5 (.86) if 90 - 180 days since last artcile update then multiply score by 1-2*.7/5 (.72) if 180 - 365 days since last artcile update then multiply score by 1-3*.7/5 (.58) otherwise multiple score by 1-4*.7 (.44) Cloning that functionality would be difficult to test without a time warping mechanism in the tests which I don't have. OTOH, the following function fits the original mechanism reasonably well: boost=1-0.6*(1-EXP(-days_old*0.004428386))
I forgot to mention that the advantage of using the function is that we could test it by waiting, say, ten seconds between modifying articles and see a slight difference in score. Slight meaning it would only come up if the scores were _exactly_ the same to begin with. But that would make this work for testing.
Created attachment 13743 [details] Chart showing how function matches old implementation reasonably well.
Patch: https://gerrit.wikimedia.org/r/#/c/95697/