Last modified: 2013-11-16 01:00:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T58690, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56690 - CirrusSearch needs wikinews's recent article boost
CirrusSearch needs wikinews's recent article boost
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
CirrusSearch (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nik Everett
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-06 20:32 UTC by Nik Everett
Modified: 2013-11-16 01:00 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Chart showing how function matches old implementation reasonably well. (101.28 KB, application/vnd.oasis.opendocument.spreadsheet)
2013-11-08 21:05 UTC, Nik Everett
Details

Description Nik Everett 2013-11-06 20:32:28 UTC
CirrusSearch needs wikinew's recent article boost to smoothly transition them to CirrusSearch.
Comment 1 Nik Everett 2013-11-08 21:00:30 UTC
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))
Comment 2 Nik Everett 2013-11-08 21:03:14 UTC
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.
Comment 3 Nik Everett 2013-11-08 21:05:08 UTC
Created attachment 13743 [details]
Chart showing how function matches old implementation reasonably well.
Comment 4 Nik Everett 2013-11-15 21:00:48 UTC
Patch: https://gerrit.wikimedia.org/r/#/c/95697/

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links