Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 157 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

When using wildcards in tag filters, the searched tag is shown twice for some patterns.

For example*facebook*

results in showing the Facebook tag twice:

Facebook tag shown twice

Another example showing the searched tag twice:*magento*

Magento tag shown twice

The issue seems to somehow depend on the tag being searched.

Other patterns, like:*html**http*

work as expected. They do not show the searched tag twice.

share|improve this question
Hmm, the ones with the tag replicated also have synonyms for that particular tag. I wonder if that's related? Good catch. – Tim Stone Jun 11 '12 at 13:15
I could very well imagine that as a plausible reason. – Jürgen Thelen Jun 11 '12 at 14:13
up vote 4 down vote accepted

This is a minor glitch caused by synonyms, which will be fixed in the next build; basically, after doing the expansion it finds some are synonyms, and does the replacements over the top - this means that some got duplicated. This will be fixed in the next build.


  • "abc-def" is a synonym for the master-tag "abc"
  • you search for "abc"
  • it expands to "abc-def abc"
  • it then applies synonyms, giving "abc abc"

The order "expand wildcards, then apply synonyms" is intentional, and addresses some edge-cases, i.e. if "ghi" is also a synonym of the master-tag "abc", then searching for "gh" will show you the "abc" data.

BTW, the explanation for this is much longer than the fix, which was just "add .Distinct()".

For info, the offending synonyms are shown here.

share|improve this answer

I believe it is a glitch in the search system (but it makes sense!!!)

Basically (what I think) it is doing is searching for all tags that end with facebook*, which it only found one: , then it finds all that start with *facebook which includes (the same goes for your other searches)

The API should know what the intersections are between those two searches, but it does not seem to be working.

share|improve this answer
Hm, no idea whether it's a glitch, but if the search really works the way you think it does, then *html* and *http* would also produce the tag twice. But they don't... – Jürgen Thelen Jun 11 '12 at 14:14

You must log in to answer this question.

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