2

Is there a way to find the posts with tags in the body (not the questions tagged with specific tags)?

I mean when post body contains tags written in a form of [tag:tag-name] and displayed as a clickable element like this one .

P.S. I don't tag this post with since description of that tag doesn't fit the purposes of my question.

BTW: answer from the linked post searches for substring not a full tag.

13
  • Probably only with SEDE: data.stackexchange.com/meta.stackexchange/query/1381537
    – rene
    Commented Mar 4, 2021 at 12:21
  • 2
    This seemed to work for me \[tag\: I knew there were a lot of such posts on English Language Learners Meta Here are the results: ell.meta.stackexchange.com/search?q=%5C%5Btag%5C%3A
    – ColleenV
    Commented Mar 4, 2021 at 12:22
  • @ColleenV I didn't know escaping special chars worked in search. That is pretty neat.
    – rene
    Commented Mar 4, 2021 at 12:24
  • @ColleenV it seems that your search request is broken. Not all posts from result contains a tag. Commented Mar 4, 2021 at 12:26
  • @αλεχολυτ Example? Did you look at the answers or just the questions? Because the sampling I did all had it somewhere in the thread.
    – ColleenV
    Commented Mar 4, 2021 at 12:27
  • @rene I find a lot of bugs by just trying what I think is the obvious way to do it. For example, if I want to add is:q to the search I have to do it before the escaped string, so I may not have the escaping quite right. I may not need the extra backslash before the : Just questions would be: is:q \[tag:
    – ColleenV
    Commented Mar 4, 2021 at 12:29
  • @ColleenV just check the search results from your link from the end (page 30 when 15post/page). Commented Mar 4, 2021 at 12:33
  • @αλεχολυτ Yeah, if you sort by relevance, the end of the search results aren't exactly what you asked for. That's true of any search on SE - the results are a bit fuzzy. If you're using SEDE the results are much more exact, but not as timely. Non-SEDE searches aren't for counting the number of posts that match a specific pattern if that's what you're trying to do.
    – ColleenV
    Commented Mar 4, 2021 at 12:35
  • If you put the tag name in there, it seems to provide more exact results. It may be an artifact of the escaping (and the : does need to be escaped): \[tag\:grammar\] : ell.meta.stackexchange.com/…
    – ColleenV
    Commented Mar 4, 2021 at 12:41
  • There does seem to be some weirdness with the escaping after experimenting with it a bit more. It's probably not intended to work that way and might be exposing an issue in the code used to sanitize search strings.
    – ColleenV
    Commented Mar 4, 2021 at 12:48
  • This may work though: url:*/tagged The escaping of individual characters causes problems, but a wildcard should work if you aren’t looking for a specific tag. (you probably want to make the pattern a little more specific to exclude urls that aren’t for SE).
    – ColleenV
    Commented Mar 4, 2021 at 16:12
  • @Glorfindel I'm not sure that we have to leave this question opened. Both questions are the same. Commented Mar 4, 2021 at 17:05

0

Browse other questions tagged .