13

Possible Duplicate:
Search [tag1] OR [tag2]
Add OR operator to SO URL's so multiple categories can be broswed at once

I want to browse two tags simultaneously. That is to say, I want to see any question tagged with either one of the two tags.

I've tried [tag1] OR [tag2], and [tag1 OR tag2], to no avail.

Is this at all possible?

5
  • You can do this, see: meta.stackexchange.com/questions/79181/… Commented Aug 15, 2011 at 20:00
  • 1
    @martin: works great. Thanks. But why can't I do this from within the search box? Commented Aug 15, 2011 at 20:02
  • @martin - Awesome! I had no idea
    – JNK
    Commented Aug 15, 2011 at 20:03
  • @Joseph, you can do OR in search, not sure you really should though, e.g. [tag1] [or] [tag2] [or] [tag3] evaluates to an OR of those three tags. Commented Aug 15, 2011 at 20:06
  • @martin: Haha. That's cheating. It wasn't designed for that. As far as the search box is concerned, you entered 5 tags in there. It just so happens that the way the URL gets structured is the same. Thanks! Commented Aug 15, 2011 at 20:08

1 Answer 1

13

The /questions/tagged URL syntax supports OR searching, for example:

searches for or

Or Tag Search

Likewise the RSS /feeds URL:

I don't know of a syntax to enter this into the search box; you have to construct the URL by hand.

Thanks to @martinclayton the search syntax [c#][or][java] does the trick.

2
  • The [or] doesn't work for me, or it doesn't work anymore. Is there any other way to use OR in the search box?
    – CodeSmile
    Commented Nov 12, 2013 at 16:37
  • Okay apparently this works but only if you're not using other search filters like is:question closed:no
    – CodeSmile
    Commented Nov 12, 2013 at 16:39

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