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

Possible Duplicates:
Can we have search default to “AND” instead of “OR”?
Why OR operator by default in search
Why search is so bad on SO ?

When you enter 2 words in the search it defaults to the OR operator, why not to the AND operator (as most search engines do)?

Is it possible to use the AND operator?

share|improve this question

marked as duplicate by random, Jon B, Ether, Troggy, Diago Jan 15 '10 at 9:02

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2  
See meta.stackexchange.com/questions/22388/… –  Arjan Jan 14 '10 at 15:34
1  
Don't close this please, it's the feature-request for this functionality. the dupe isn't, so it won't show in Jeff's feature-request search. –  Lance Roberts Jan 14 '10 at 16:04
    
@Lance. Since this already can be done I see no need for the feature request: meta.stackexchange.com/questions/22388/… –  Diago Jan 15 '10 at 9:08
    
Please don't close. As already explained, this is not a dupe. This is a feature request. The current way is obscure and not supported. If you use "word" and "word2" and use the pagination the search query is messed up. Also, if you read, my feature feature is simple: make the default in the search to AND not OR. –  AlfaTeK Jan 16 '10 at 22:08

2 Answers 2

There is a way to do this, but it's obscure.

Quotes trigger strict matching, like so:

http://stackoverflow.com/search?q=%22perl+array%22

But that strict matching search mode is typically only used for phrases. If you want it in words, you have to use quotes around each word:

http://stackoverflow.com/search?q=%22xts%22%20%22mode%22

compare with results from non-quoted version

http://stackoverflow.com/search?q=xts+mode

share|improve this answer
    
Thanks for the info. –  Lance Roberts Jan 14 '10 at 19:26

From what I've tried, it looks like "AND" is not supported in the SO search.

I would like to see the behavior change as well. Better yet, how about support for boolean operators?

However, the usual answer for questions on SO search is "use Google".

share|improve this answer

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