I was led to believe that
-[tag] would do this, but it doesn't appear to.
Tag search functionality is... limited... and completely broken in many complex cases when using the
Your best bet is to keep the search as simple as possible. Most of what you need to know is covered in my bug report here.
To summarize, here are some common cases you might try when doing an advanced search:
[tag1] -[tag2]-- works! (it's all downhill from here, so hopefully this is sufficient)
-[tag1]-- disallowed because the result set would be too big
-[tag2] [tag1]-- disallowed
[tag1] -[tag2-~]-- broken -- expands as
[tag1] and -[tag2-a] or [tag2-b] or [tag2-c]instead of
[tag1] and -([tag2-a] or [tag2-b] or [tag2-c])
[tag2-~] -[tag1]-- broken -- expands as
[tag2-a] or [tag2-b] or [tag2-c] or -[tag1]instead of
([tag2-a] or [tag2-b] or [tag2-c]) and -[tag1]
[tag1] -[tag2] other search terms-- appears to be broken -- looks like the
NOToperator is simply ignored
I could swear I had a comment discussion with Jeff about the ~ operator leaking out those
ORs, but it was so long ago that I doubt I can find it at this point. He saw what was wrong, but I guess it never got fixed.
Anyhow, with the wildcards, even the erroneous expansions don't seem to produce correct search results... so at this point, don't even bother trying that. Wildcard searches on their own or in combination with other
ANDed tags work fine. It's only when the
NOT operator is introduced that everything blows up... but that's what you asked for in this question, so there it is.
You can, but a query cannot have merely a not clause.
is disallowed, but
SOMETHING AND NOT OTHER
You can only do this with tags alone using
questions/tagged. You can use the form
-tag, in conjunction with another tag:
not functionality will not work in a search, so there's no way to add a search term.
So this will work:
The above selects all
If you try and add a search term it will only look like you're selecting questions that are not in a tag.
For example to try and search "open link new window" in
html], you can try the following.
This will not work.
This will take you to a page that says
not HTML, but that's not true:
You can try Google with something like: