x/pkgsite: support real-time fuzzy searching for packages #44116
What is the URL of the page with the issue?
What is your user agent?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.40 Safari/537.36
What did you do?
In this case I was trying to quickly get to https://pkg.go.dev/github.com/rogpeppe/go-internal/testscript
I would like to have been able to type simply
What would you like to see?
Real-time, fuzzy search results presented below the input box, much like Google (GitHub etc)
What did you see instead?
There is no such feature. It's a request-response based approach at the moment.
The text was updated successfully, but these errors were encountered:
FWIW, I added a redis-based auto-completion before launch, but it didn't make it to prime-time and I haven't had time to work on it since -- see also #40549. If enough people are interested, perhaps it could be resurrected, in some form or another. Another solution would be to occasionally process the most popular packages, and put them in an in-memory trie on the frontend tasks.
The maintenance cost is definitely non-trivial though, so it would have to be a heavily used feature in order to be worthwhile.