Not sure it would be a good idea. Search is usually a tradeoff between relevancy, speed, index time/volume and query complexity ( aka special keywords/filters/options). Making tags part of the directly searchable keywords would hurt relevancy in some cases ( how do you rank a post containing pr-welcome in body versus a post tagged pr-welcome?) and probably hurt performance.
It’s easy to see a query and say this should be first and this second… but once you take all the cases in consideration it’s much harder.
I’m not suggesting any changes to how ranking or relevance is determined for topics and posts. That may be worth more investigation, but it’s not what I was trying to suggest.
All I want to see is the #pr-welcome tag itself shown underneath “show more” the same way the link to the #feature category is shown in the first screenshot.
I should have put big red arrows in the screenshot to point this out more specifically. On mobile now, so I can’t easily update them at the moment, but hopefully that helps to clarify what I’m talking about.
That’s exactly the edge case because of which I said
But even that could be handled by making it so that hits in tags are treated the same as hits in content unless there is at least one search term that does not match a tag. Or you could simply treat tags as content, full stop.
As I said, tradeoffs. This kind of “if” is not free. For every query we now have to match against the full list of tags each word, where before we would just have to search for a #, totally different story.
And making it part of the searchable content, is just making it slower. The sooner you can reduce the list of potential results the faster it will be, so filtering on a tag with #tag and then adding a query will be probably much faster than full search on “tag query”.
Adding tags to the “category hit” section is totally #pr-welcome agree we should add it. We will need to be careful at ordering the tags list and culling it if it is too long. (Imagine 1000 tags called spam-1 spam-2 spam-3, though lovely, it could kill off that whole UI. So show popular spam tag first)