Page MenuHomePhabricator

CirrusSearch needs wikinews's recent article boost
Closed, ResolvedPublic

Description

CirrusSearch needs wikinew's recent article boost to smoothly transition them to CirrusSearch.


Version: unspecified
Severity: normal

Details

Reference
bz56690

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:13 AM
bzimport added a project: CirrusSearch.
bzimport set Reference to bz56690.

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.

Chart showing how function matches old implementation reasonably well.

Attached: