Page MenuHomePhabricator

Better Special:Random
Closed, ResolvedPublic

Description

Special:Random isn't very random.

It'd be nice if we could use Elastic Search to do more randomness


Version: unspecified
Severity: enhancement
See Also:

Details

Reference
bz65366

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:14 AM
bzimport added a project: CirrusSearch.
bzimport set Reference to bz65366.
bzimport added a subscriber: Unknown Object (MLST).

We've got SpecialRandomGetRandomTitle already. Should be easy.

Change 133606 had a related patch set uploaded by Chad:
Power Special:Random from Elasticsearch

https://gerrit.wikimedia.org/r/133606

Change 133606 merged by jenkins-bot:
Power Special:Random from Elasticsearch

https://gerrit.wikimedia.org/r/133606

Special:Random is now powered by Cirrus on wikis that have it.

It uses a function score query[0] with random_score's seed using a munged int version of the random seed we used already. Looks random enough.

[0] http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#_random

"Hi. I was using the Special:Random/File tool for a long time on rowiki, in order to fish for unfree images and candidates for Commons. Last days when I accessed the tool, it returned me only Commons files. Tried @ enwiki - same drill"

https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)

(In reply to Derk-Jan Hartman from comment #5)

"Hi. I was using the Special:Random/File tool for a long time on rowiki, in
order to fish for unfree images and candidates for Commons. Last days when I
accessed the tool, it returned me only Commons files. Tried @ enwiki - same
drill"

https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)

Probably should be filed as a new bug and marked as a regression...

(In reply to Sam Reed (reedy) from comment #6)

(In reply to Derk-Jan Hartman from comment #5)

"Hi. I was using the Special:Random/File tool for a long time on rowiki, in
order to fish for unfree images and candidates for Commons. Last days when I
accessed the tool, it returned me only Commons files. Tried @ enwiki - same
drill"

https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)

Probably should be filed as a new bug and marked as a regression...

Done Bug 66643.

Created attachment 15950
Special:Random caused some load

Note, reverted on Wikimedia wikis for now. https://gerrit.wikimedia.org/r/#/c/146615/

Attached:

RandomOverload.png (420×747 px, 43 KB)