I tried a simple search: [c++] string "long long". I didn't find the question I was looking for, until I used Google and got to convert string to long long.

I paid more attention to the search results page, and found out that I was getting 'search results for posts containing "long long" tagged with c++ string'

So it looks like string is considered as if enclosed between square brackets even though it isn't.

share|improve this question
add comment

1 Answer

up vote 8 down vote accepted

This behavior is documented on the advanced search page.

Results are weighted heavily towards question title matches, and any search terms matching the most popular 60 tags will be automatically mapped to a tag to help narrow your search.

is currently the 39th most popular tag on Stack Overflow, so that's why it's getting treated as a tag. You can add quotation marks around the word to override this behavior.

[c++] "string" "long long"
share|improve this answer
Thanks. I had read the faq's answer on search but didn't get to the advance search page. No reference to quotation for overridding though. –  Antonio Pérez Sep 19 '11 at 8:47
@AntonioPérez I'm not sure if it's documented anywhere, or if I got it from Google, where adding quotation marks also prevents uncommon words from getting "corrected" in your query. –  hammar Sep 19 '11 at 10:49
add comment

You must log in to answer this question.

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