Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

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

You must log in to answer this question.

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