Tags AND Tags OR Tags
Until recently, we hadn’t done a good job of providing a user interface for combining tags. You’ll notice that all the question browsers now show “related tags”, with a count of how many tags are shown for whatever view you happen to be in (with the exception of search):
Let’s say I clicked on the Python tag, anywhere on the Stack Overflow site. Clicking on a tag zips you away to a view of all the questions within that particular tag. Within the tag view, you can sort and browse as expected, but you can also click the related tags in the right sidebar to combine tags, like so:
This isn’t exactly new; you could always do this manually in the URL by space delimiting the tags. However, these were always implicit ands, as in:
Show me all the questions tagged both “python” AND “django”
[http://stackoverflow.com/questions/tagged/python django](http://stackoverflow.com/questions/tagged/python django)
We also support a slightly shorter synonym of this URL that does the same thing:
[http://stackoverflow.com/tags/python django](http://stackoverflow.com/tags/python django)
But maybe that’s too specific for your tastes. Now you use the new or pseudo tag:
Show me all the questions tagged either “python” OR “django”
[http://stackoverflow.com/questions/tagged/python or django](http://stackoverflow.com/questions/tagged/python or django)
We also support NOT if you prefix the tag with a dash, like so:
Show me all the questions tagged “python” BUT NOT tagged “django”
[http://stackoverflow.com/questions/tagged/python -django](http://stackoverflow.com/questions/tagged/python -django)
This works throughout the site, including questions, unanswered questions, and all tag based RSS feeds. Anywhere on Stack Overflow you can specify a tag, you now specify multiple tags with or without the or clause.
I’m not sure if that’s super or awesome. I haven’t decided yet.
But either way, it was definitely a highly ranked request from a lot of users.
” Now you use *the new or pseudo tag*” reads funny; do I write “new” or “pseudo”? – consider “Now you use the *OR* keyword between tags”. (if it’s a pseudo-tag I think we don’t need to know this implementation detail). I’d also welcome the site adding an explicit “and” rather than space being “implicit and”. If you think this would clutter the overall UI, maybe just add it in some places like where a user has to type tags, such as the search box or the filter designer dialog – this would help describe to the user that they can use other words between the tags, like “or”; essentially making the site self documenting