10

When searching questions I can select a tag say but how can I search for multiple tags at once and only return the questions that have all the tags.

4
  • Use 2 tags together in the search box: [sql][sql-server] stackoverflow.com/questions/tagged/sql+sql-server, to return either tag: [sql] or [sql-server]. Also you can read this and for an advanced search, perhaps read this
    – Tanner
    Commented Sep 8, 2014 at 10:17
  • Sorry I didn't realise i missed out specifics. I referring to when I use SO on my phone. As soon as I touch one tag it returns the results. I need it to hold off until I've selected all required tags.
    – RyanTCB
    Commented Sep 8, 2014 at 18:05
  • The same applies. If you click on "questions" on the menu, then where it says "all questions" with the magnifying glass, you can enter your search terms as specified.
    – Tanner
    Commented Sep 8, 2014 at 18:25
  • I was hoping for a way to just tap the tags in the menu. Oh well thanks for replies.
    – RyanTCB
    Commented Sep 10, 2014 at 6:13

2 Answers 2

16

Like this? https://stackoverflow.com/questions/tagged/foo+bar

In the search box, this is [foo] [bar], and searching for [foo] [bar] takes you to https://stackoverflow.com/questions/tagged/foo+bar.

Note that "and" is the default combiner. You can explicitly state "and" if you prefer to be explicit: https://stackoverflow.com/questions/tagged/foo+and+bar. From this, it should be obvious that to do the or search, you can use: https://stackoverflow.com/questions/tagged/foo+or+bar

2
  • He's after AND logic as opposed to OR
    – Tanner
    Commented Sep 8, 2014 at 10:20
  • 1
    @Tanner my bad; replace "or" with "and" then ;p
    – Marc Gravell Mod
    Commented Sep 8, 2014 at 10:20
2

You can also type on the search bar like this:

[tag] and [anotherTag]

or

[tag] or [anotherTag]

You must log in to answer this question.

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