What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 127 Stack Exchange communities.

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.

share|improve this question
    
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
    
@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
    
Tag search FAQ page can be found here: meta.stackexchange.com/questions/5229/… –  raven Jul 29 '09 at 20:45
add comment

4 Answers

up vote 17 down vote accepted

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

share|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 at 14:27
add comment

Updated:
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.


Old:
[The OR method] Exists as described here.

Try tags or search
Or, nhibernate or web-services

share|improve this answer
1  
It was doing OR, he wanted AND. –  Ian Elliott Jul 29 '09 at 17:46
    
+1 for "living and learning" rather than getting bent out of shape. –  raven Jul 29 '09 at 20:41
    
+1 for (undocumented?) OR search –  J.F. Sebastian May 15 at 15:36
add comment

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

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

share|improve this answer
    
That is an AND operation –  nik Jul 29 '09 at 17:24
3  
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
    
@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
add comment

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.

share|improve this answer
add comment

You must log in to answer this question.

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