When I search for the ruby
tag a lot of the time I get stuff about ruby on rails
which I actually don't want. Should there be a way to specify tags you really really don't want to have? Not just one but many, if possible
1 Answer
You can use a combination of the -
(exclusion) and *
(wildcard) operators to ignore a set of tags. For example, if you want questions tagged with ruby but not tagged with any other tag beginning with the prefix ruby-
, then you could use the search:
[ruby] -[ruby-*]
After submission, this gets expanded into the search
[ruby] -[ruby-on-rails] -[ruby-on-rails-3] -[ruby-on-rails-4] -[ruby-on-rails-3.2] -[ruby-on-rails-3.1] -[ruby-on-rails-plugins] -[ruby-on-rails-2] -[ruby-on-rails-4.2] -[ruby-1.9.3] -[ruby-on-rails-4.1] -[ruby-2.0] -[ruby-1.9] -[ruby-datamapper] -[ruby-1.9.2] -[ruby-1.8.7] -[ruby-2.1] -[ruby-debug] -[ruby-on-rails-5] -[ruby-c-extension] -[ruby-1.8]
-
-
-
@PeterDavidCarter shell? It's the search box in the upper right corner.– ryanyuyuCommented Mar 24, 2016 at 21:40
-
-
in your query:waffles -unicorns
finds posts that mention tasty batter-based breakfasts without including mythical creatures, while[laurel] -[hardy]
includes only posts pertaining to the first half of the classic comedy couple."[tagiwant] -[donotwant] -[northis]