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).
Reedy created this task.May 15 2014, 7:32 PM
demon added a comment.May 15 2014, 7:40 PM

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

demon added a comment.Jun 4 2014, 2:31 PM

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

TheDJ added a comment.Jun 15 2014, 7:32 PM

"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)

Reedy added a comment.Jun 15 2014, 7:58 PM

(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:

Nemo_bis updated the task description. (Show Details)Feb 21 2016, 9:37 PM
Restricted Application added a project: Discovery. · View Herald TranscriptFeb 21 2016, 9:37 PM