Yes, one indeed is including and excluding the search term, ensuring that no results satisfy the query. Why does this take so long? Probably, Google evaluates a query until it retrieves the 30 or so most relevant results and returns them. But with the contradictory query, none are found, and so the retrieval continues until it times out.
But if you should try "-13 13", we do get results; this suggests that there is a mode of retrieval gated by the query terms being more than one character in length.
If we should try, say, "q -q", the number of results and retrieval time does not pop up. however, it seems to take comparably long to execute.
Trying out "c -c", however, we still get the no. of results display, along with the retrieval time. A card also pops up showing the calculation as interpreting c to be the speed of light.
Thus it seems that the results counter and retrieval time is displated whenever Google has something to say regarding the query, even if it is not a search result; but it does not display it when it has absolutely nothing to say. But even if it has nothing to say, it still spends the same large amount of time attempting to retrieve results.
Interesting though, isn't it!
- is used to exclude results
* is a wildcard
There's other search options i.e. for date ranges, "inurl:", "filetype:", and looking for exact string matches using quotes. But sometimes they don't work as well. Try:
"define:-2*2"
"2 * -2 * +2"Notably, this doesn't happen for other multiplies I randomly plugged in involving a positive and a negative. 2 * -2 has the same slow behavior as well, but if you remove the whitespace from the query, or rewrite the -2 as -(2) or (-2), it runs fast again.
Removing the white space from the query with the -2 as the first value doesn't speed it up, only adding the parens does.
I think the big clue to what's actually going on is on parses that run in the normal amount of time, Google also returns actual search results. I'm guessing the slowness is coming from the search service timing out, but the calculator service still returns, so you still get a result at all.
Good stuff, thanks for sharing.
As others mentions maybe the minus is seen as exclusion parameter. So I tried "-test test" which shows empty results. However searching "-2 2" (without the wildcard, shows an empty map tile with "Map for -2 2", funny.
https://www.google.com/maps/place/2%C2%B000'00.0%22S+2%C2%B0...
When I hit Enter to submit the search, there's a delay while it loads the calculator over my slow connection, then shows the calculator with the correct answer in the display.
No problem.
- 2 + 2 works fine while -2 + 2 does not. -2 +2 seems working though.
Also, try to search "-2" to get no results.
Some sort of conflict between the "ignore keyword using hyphen prefix" and the "is it a calculation" detection, causing the search itself to time out and produce zero results? Searching with quotes ("2 * -2") is fast ("About 25,270,000,000 results (0.49 seconds)") but no calculator is shown.