I'd like to be able to search for questions by multiple tags; for example "questions tagged 'nhibernate' and 'web-services'".

I can get close by searching for "nhibernate web-services" but the results tend to be a few questions that relate to both terms--but much more largely just questions that relate to one or the other.

  • 1
    Just to clarify, you want a search for "nhibernate OR web-services", right? Any one tag is sufficient for the question to be present in the result. – nik Jul 29 '09 at 17:28
  • 1
    @nik no, you're going to need to give raven his point back--I'm looking for an AND search – STW Jul 29 '09 at 17:30
  • 1
    Tag search FAQ page can be found here: meta.stackexchange.com/questions/5229/… – raven Jul 29 '09 at 20:45

You can. Search for [tag1] [tag2] to search for questions with both tags.

| improve this answer | |
  • +1, This is better than typing in the URL :) – nik Jul 29 '09 at 17:59
  • @nik: agreed, I did not know you could do this. Pretty cool. – raven Jul 29 '09 at 20:44
  • @DanDascalescu - as you found out in your Q&A, it is not broken. Maybe you could remove your comment, it misled me :) – miroxlav Apr 11 '14 at 14:27
  • sorry but this does not work. codegolf.stackexchange.com and [code-golf] [java] in search box will ignore my Java tag. – phil294 Jan 3 '16 at 15:59
  • 2
    @Blauhirn Use quotes: "[code-golf] [java]" – Navin May 17 '16 at 2:24
  • @Navin sorry but no, this totally does not do it, try it out yourself: codegolf.stackexchange.com/search?q=%22[code-golf]+[java]%22 . there are plenty questions tagged witih code-golf AND java. – phil294 May 17 '16 at 8:46
  • @Blauhirn It appears to work on SO: stackoverflow.com/search?q=%22%5Bopenssl%5D+%5Bc%5D%22 (If it doesn't work, ask a new question here and report the bug) – Navin May 17 '16 at 21:49
  • 2
    It does not work for anonymous users: meta.stackexchange.com/questions/243960/… – Silveri Jul 8 '16 at 6:49
  • can we search with OR like [tag1] or [tag2] ? – Sagiv b.g Feb 28 '19 at 17:16

AhA! Mea Culpa! I did not appreciate the difference between these two ways.

  • Search: [nhibernate][web-services]
  • Search: nhibernate web-services

Something to do with the way I am used to get the effect of "[nhibernate][web-services]" directly by typing that in the URL as "questions/tagged/web-services+nhibernate".

Taking away all my comments and leaving this answer around as something I learned here.

[The OR method] Exists as described here.

Try tags or search
Or, nhibernate or web-services

| improve this answer | |
  • 2
    It was doing OR, he wanted AND. – Ian Elliott Jul 29 '09 at 17:46
  • +1 for (undocumented?) OR search – jfs May 15 '14 at 15:36

You can. Type this in your browser's address bar:

https://stackoverflow.com/questions/tagged/nhibernate web-services

| improve this answer | |
  • That is an AND operation – nik Jul 29 '09 at 17:24
  • 4
    That's what he asked for, "questions tagged 'nhibernate' and 'web-services'" – raven Jul 29 '09 at 17:29
  • 1
    The part where he says "but the results tend to be a few questions that relate to both terms" seems to suggest he wants the search to be more generic (OR rather than AND). I re-read the question later and asked a clarification... – nik Jul 29 '09 at 17:32
  • 2
    @nik sorry for the ambiguity--I was trying to say my search for nhibernate+web-services got a few good hits but most were just one or the other – STW Jul 29 '09 at 17:35

If you want to do a simple ANDed search, there is another way to accomplish this, without actually using the search interface.

By going to one of the tag pages, using [nhibernate] as an example, if the additional tags you want to search for are popular enough within that tag to show up on the right side of the screen, clicking on one of those tags automatically adds an AND to the filter.

So if you're browsing questions in [nhibernate], clicking on the [mapping] tag on the right side takes you here.

This is a really easy way to browse through questions, and without doing a lot of typing. As I mentioned, the tags you're looking for do have to be popular within the subset of questions shown in the list, but once you've narrowed things down by 2 tags, the list is generally short enough to just browse through all the questions to find what you're looking for.

| improve this answer | |

You must log in to answer this question.

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