Gelbooru

Notice: We are now selling NEW Gelbooru Merch~! Domestic shipping is free on all orders! Do you have an artist tag on Gelbooru? Let us know so we can properly credit you!

Ticket Information - ID: #913


ID:Category:SeverityReproducibilityDate SubmittedUpdated By:
0000913Feature RequestnormalN/A12/06/17 06:38PMlozertuser
Reportersecret64
Assigned to:geltas
Resolution:Resolved
View StatusPublic
Version:
Target Version:N/A
Summary:Random cheatsheet search term
Description:It would be a way to do a random post search with the restriction of tags. Basically, you put a special term in the search box and it sorts the posts randomly. It could look like sort:random or sort:shuffle or something.
Additional Info:Sorting by score is nice, but you start to see the same posts after a while, even though there are a lot of good ones that have lower scores. It would be nice to mix them up to bring to the surface some posts that are deep in most searches.

One problem might be how the random line up of posts will be preserved between pages. You could store the RNG's seed in a cookie or right in the URL. Or maybe only display a single page. It would be helpful though if they didn't change just from refreshing the page.
secret64 replied at 2018-12-28 03:24:36
Another idea along the same vein would be a link that sends you to random tag post search. Basically it randomly picks a tag out of all the ones available and does a post search with that tag.

secret64 replied at 2019-06-04 21:48:00
What if there was a cheatsheet term called seed, and you use it like this [seed:2347269587]. There could be a "random search" button which takes your existing search and puts a random number in to seed the RNG. That way, each page of the search will always yield the same results so long as the seed is the same.

lozertuser replied at 2020-04-09 07:54:15
Basic functionality added, but will update with user specified seed in future.

lozertuser replied at 2020-04-09 08:06:43
Added seed, but the caveat is that if an image is added, the seed becomes unique/worthless as the search index has changed.

secret64 replied at 2020-06-25 19:01:47
Awesome! I love this! Do you think you could update the cheatsheet so others know how to use it? I had to do a bit of experimenting to figure it out.

For anyone reading this: type [sort:random] or [sort:random:123] where "123" is your seed and can be any number.

The constancy of post order per seed only lasts anywhere between a couple seconds and half a minute, and there seems to be more than just an added image that affects it. I don't know if you can totally fix this (it would be amazing if you could), but do you think you could at least make it last a whole day by having the RNG ignore any changes made for that day, or something?

lozertuser replied at 2020-06-27 04:36:32
This is a function internally built into our searcher, I do not believe this is modifiable.