bazel-contrib / bcr-ui

Website for the Bazel Central Registry
https://registry.bazel.build
Apache License 2.0
15 stars 8 forks source link

"Search for module" cannot return correct result #53

Open wondfor opened 1 year ago

wondfor commented 1 year ago

image When I use the search for module with “rulescc”,it show me all the ruels*

hobofan commented 1 year ago

I'm not sure if there is much we can do here. "rulescc" is correctly prioritized as the first search hit, and the remaining search hits contain most of the search query. For "rules" with a short suffix like "cc", this is unavoidable.

There probably is some dial we can turn to make it a bit more strict, though. Right now a query for "rules_apple" will not only yield "rules_apple" and "rules_apple_linker", but also some more packages, even though that should be a distinctive enough suffix.

One thing that could be considered here is changing the layout so that it's a clear top-to-bottom list, but that wouldn't change anything about the hits listed.