In Progress Replay search improvements

wuhoodude

Goodbye Bewear
is a Tiering Contributor Alumnus
Easier way to search replays would be nice. Currently you can only search by either username or format, but not both at the same time. It would be so much easier if we didn't have to scroll through our old replays to find one for a tier we may not have played in a while. Also searching with two users to find specific battles between the two.
 

pre

pkmn.cc
This is a little challenging because it involves persistence and private code. However, adding the ability to search by both user + format should be relatively easy for someone with access to do (and similarly, adding the ability to search by two users is fairly easy, though the query needs to look like "(p1 = <user1> AND p2 = <user2>) OR (p1 = <user2> AND p2 = <user1>)".

The main reason these specific changes haven't been made is that ideally we'd like to be able to support arbitrary queries, even over the logs themselves (eg. "show me Gen 7 OU replays containing a Serperior"), but enabling full-text search on the replay database hasn't proven to scale very well. However, I would like to see us not block on this, and instead add some quality of life improvements to replay search (date range, ratings, multiple users, formats) instead of trying to wait to figure out the ideal solution.

EDIT: 'Approved' because improving replay search is something we'd like to address/are experimenting with, but given the extremely limited set of people able to work on it currently it seems unlikely that there will be a lot of progress in the near future (though presumably if it receives a lot of support from users it would be more likely to be prioritized...)
 
Last edited:
Seconding the date range filter addition, for example if I'm searching for uu replays I don't want to see replays that are from before the last tier shift since they might be meaningless. Also a documentation for the replay api would be nice :blobwizard:.
 
Easier way to search replays would be nice. Currently you can only search by either username or format, but not both at the same time. It would be so much easier if we didn't have to scroll through our old replays to find one for a tier we may not have played in a while. Also searching with two users to find specific battles between the two.
Cool
 
Almost double posting but by digging a bit more I noticed a limit to only the last 1250 replays (25 pages) when going backwards in a search, it is pretty limitating when trying to make metagames analysis based on it since over the 1250 there are around 3% that belong to the same person using the same team. I'm not sure why there is such limit, loading time is still fast (200ms) when trying to get the 25th page. Having access to up to 100 page would be a good improvement to start with.

Edit: it's actually written in the code: https://github.com/Zarel/Pokemon-Showdown-Client/blob/master/replays/search.php#L116
 

Users Who Are Viewing This Thread (Users: 1, Guests: 0)

Top