Add weights for topics in text search
Hello. Thanks to all contributors. I have checked the documentation, and it appears that topics have not weights for text search.
✅ Use Case
I am the owner of a plugin to store media in a gallery called gal.
My package is currently popular to a certain extent, but my package only appears on the third page for the search term "gallery". Of course, it includes "gallery" in the readme and description.
For reference, here is the package one above mine in the search ranking.
The addition of the ability to search for packages by topics is great. But I feel that the topics feature is not being utilized very well, as it does not affect text search.
if the title that contains query text has too much weight, the package name uploaded to pub.dev will inevitably be longer, which will affect the class name as well. Over time, there will be more packages with the same name and the search experience will be not good.
With the addition of text search weights to topics, developers can name packages more freely, and even if they add that functionality later, users can find them simply by adding topics.
@natsuk4ze not sure if you are looking for this, but you can already add topic:<x> filter into any search expression, e.g. https://pub.dev/packages?q=topic%3Agallery (this also happens if you click on the #gallery topic).
thanks @isoos Yes. I already know its function. However, it is not used by many people and I do not believe it solves the problem.