34

Is there a way to search questions that are tagged with either tag1 or tag2?

Actually, I would like the general filter,

([tag1] AND [tag2], ...) OR ([tag3] AND [tag4], ...) OR ...

And even

[tag1] AND ([tag2] OR [tag3])

I need that because I'm looking for interesting questions and I have to search for each tag separately.

1
  • Please have a look at the related questions over there --->. There are currently quite a few issues doing complex searches.
    – Jon Seigel
    Commented Jun 17, 2010 at 12:53

2 Answers 2

27

Search for [tag1] or [tag2], e.g. [support] or [feature-request].

6
  • 1
    Great, this is what I was looking for!
    – ks1322
    Commented Sep 15, 2011 at 16:04
  • 1
    uh, why are you doing [or] when just plain "or" works fine? stackoverflow.com/questions/tagged/uncrustify%20or%20undef Commented Jan 3, 2012 at 20:14
  • 4
    @JeffAtwood You don't get the page you linked from searching for [uncrustify] or [undef], which Nick says is intentional. Searching using [uncrustify] [or] [undef] does get you to that page, but apparently not intentionally.
    – Tim Stone
    Commented Jan 3, 2012 at 20:27
  • 2
    @JeffAtwood - Tim is correct. Searching for [tag1] or [tag2] results in a listing of all posts tagged with both [tag1] and [tag2] containing the word or, leading to [this /search page](meta.stackoverflow.com/search? q=%5Buncrustify%5D+or+%5Bundef%5D). Searching for [tag1] [or] [tag2] leads to the /tagged page you linked I've edited the answer back to the solution that Waiwai, Nick, Tim Stone, and I have found. Commented Jan 3, 2012 at 21:30
  • This answer seems to be outdated: meta.stackoverflow.com/search?q=%5Btags%5D+or+%5Bsearch%5D works fine now. Commented Feb 26, 2014 at 8:43
  • This answer does not support what the OP and I are looking for. I have not found a way to search for tags regex and (javascript or perl), e.g. [regex] and ([javascript] or [perl]), or alternatively ([regex] [javascript]) or ([regex] [perl]) Commented Aug 12, 2022 at 20:33
10

I've found my answer here:

https://blog.stackoverflow.com/2008/10/tags-and-tags-or-tags/

1
  • 2
    Most of us search by using the 'search' box, not by appending our query to the /tagged URL. Commented Jan 3, 2012 at 21:34

You must log in to answer this question.

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