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?

  • 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. 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/… 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

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

Quotes trigger strict matching, like so:


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:


compare with results from non-quoted version



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".


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