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

I'd like to be able to do the following in the search box:

shell [cmd] [-linux]

to search for "questions containing the 'shell' term AND having the 'cmd' tag AND NOT having the 'linux' tag"

Note that "shell" is not a TAG !

share|improve this question
1  
Dupe: meta.stackexchange.com/questions/16462/… –  random Aug 26 '09 at 11:32
    
It is not a duplicate, as I want to be able to do a keyword+tags search, not only tags –  AlberT Aug 26 '09 at 11:57
    
Okay, then quote the terms and bracket the tags –  random Aug 26 '09 at 12:10

2 Answers 2

up vote 11 down vote accepted

You can if you precede the tag in the search with a minus (-):

shell [cmd] -[linux]

The following links pop for searches across the SOFU for questions that mention shell tagged but not tagged .

StackOverflow: http://stackoverflow.com/search?q=shell+%5Bcmd%5D+-%5Blinux%5D

ServerFault: http://serverfault.com/search?q=shell+%5Bcmd%5D+-%5Blinux%5D

SuperUser: http://superuser.com/search?q=shell+%5Bcmd%5D+-%5Blinux%5D

share|improve this answer
    
I think the minus sign should be outside the brackets, Is it right? I tried and it is the solution. OK –  AlberT Aug 26 '09 at 14:01
    
Logically it would be on the outside, but within the brackets, it keeps that part of the query as a tag. –  random Aug 26 '09 at 14:09

As workaround you can set linux to your ignore list temporarily (or permanently, if you don't like it at all).

share|improve this answer

You must log in to answer this question.

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