7

I see some questions (but mostly answers) that mention tags. For example I could mention the tag here.

Is there a way I could search for posts that have mentioned a particular tag?

0

1 Answer 1

7

For cases where you're on a child meta site (e.g. Meta Stack Overflow) and you want to search for posts mentioning a main site tag, you can just search for e.g. url:https://stackoverflow.com/questions/tagged/exception, as I mentioned in this answer.

That doesn't work for Meta Stack Exchange, cases where the [tag:] syntax is used on a main site, or where [meta-tag:] is used on a child meta site. Searching for url:https://meta.stackexchange.com/questions/tagged/burrito will find my answer (because I literally mention the link) but fail to find your question. However, there's a neat trick for this: you can search for url:/questions/tagged/burrito:

enter image description here

It will find posts where people directly linked to the tag page as well; I don't think those can be filtered out easily. You can use other search options to e.g. limit the search results to questions only with is:q.


The obvious way, searching for the full URL with url:https://meta.stackexchange.com/questions/tagged/burrito doesn't work in this particular case, because the [tag:burrito] element is rendered as <a href="/questions/tagged/burrito" class="post-tag" title="show questions tagged &#39;burrito&#39;" rel="tag">burrito</a>, which uses a relative URL.

7
  • Awesome! I would never have thought of that. Aug 2, 2019 at 7:17
  • It took me a few educated guesses to get the syntax right as well. In fact, I was already writing a horribly slow SEDE query to search for the literal occurrence of [tag:burrito] in the markdown.
    – Glorfindel Mod
    Aug 2, 2019 at 7:21
  • Heh, it turns out I answered a pretty similar question 6-8 weeks ago. It is slightly different, though, funny to see how the post rendering works in detail.
    – Glorfindel Mod
    Aug 2, 2019 at 7:31
  • @Glorfindel I think this answer is far more detailed. Perhaps close the other one as a dupe?
    – Luuklag
    Aug 2, 2019 at 7:39
  • That makes sense, but I should first edit the details in the other answer into this one, I guess.
    – Glorfindel Mod
    Aug 2, 2019 at 7:46
  • Seem that solution works for tag substring, not a full tag. For instance this request gives me post with any status* tag. Mar 4, 2021 at 12:40
  • @αλεχολυτ you're right, and using double quotes doesn't help: meta.stackexchange.com/… (and the hyphen in status-* is not to blame, see meta.stackexchange.com/…)
    – Glorfindel Mod
    Mar 4, 2021 at 12:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .