3

The help for the search function says clearly that the way to search for posts not marked with a tag, say , is to put a hyphen before the brackets, like this:

-[support]

When I do it, something else happens: the search string in the search field gets changed to

"-[support]"

and the search instead gives me matches where the word "support" occurs, and the tag may very well appear.

Am I somehow doing it wrong?

6
  • You are doing something wrong, but hard to tell when you don't give us a complete example. A sample query like [c#] -[.net] reliably returns C# questions that are not also tagged with [.net]. Commented Mar 26, 2018 at 12:26
  • @HansPassant: This happens when you only search for one exclude tag: -[.net] alone also reproduces the problem. When you add something else to the search query, then everything works fine.
    – BDL
    Commented Mar 26, 2018 at 12:28
  • 1
    It's kind of broken. Search will return results found containing "-[support]" tagged with not support so there's a part of it working, but it shouldn't put quotes around it. Probably an unintended side effect of another change.
    – user247702
    Commented Mar 26, 2018 at 12:29
  • A simple workaround: search for questions with 0 or more views
    – Erik A
    Commented Mar 26, 2018 at 13:02
  • I guess I tried out the construction on its own and then gave up using it when I couldn't get it to work. @HansPassant What I showed was my complete example. Commented Mar 26, 2018 at 13:28

1 Answer 1

3

There's a workaround, though.

To find all posts without support tag, use -[support] is:
To find all questions without support tag, use -[support] is:q

You must log in to answer this question.

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