Google gives better search results than the built-in search
The built-in Elastic Search just can't compete with Google search results (except in one particular case, see Exception below), and people know it:
I've observed that google search (even without specifying site search, i.e.
site:stackoverflow.com <search query>
, gives better search results compared to SO search.
Also this,
Hands down the search feature. Sorry but it's just plain useless. Anything that's worse than a Google custom site search should be replaced by a Google custom site search.
It's one reason I hardly ever downvote duplicates: I can't blame people for not finding them most of the time. Sometimes I know the duplicate exists because I've seen it before and still can't find it.
Also this,
I agree that Stack Overflow's search tool isn't very helpful in finding relevant results. I usually just use Google with some extra search parameters like
site:
. For example:"foo in the bar <some language> site:stackoverflow.com"
Narrow down your search as needed. That works for me most of the time.
Request
I think that we can significantly improve the quality of questions on Stack Overflow, and reduce the number of duplicate questions, simply by replacing the current built-in search engine with results from Google itself. I personally rarely ever use the built-in search, because Google just surfaces relevant questions so darn better.
Exception: searching for code and operators
The built-in Elastic Search will allow you to search for operators using their literal symbols, such as *
and &
instead of using "asterisk" and "ampersand", respectively:
Quoted phrases are exact matches except for case-sensitivity, for example, you can search for code or symbols.
Examples:
"COUNT(*) AS UpVotes"
"*="
Such a feature can help with cases where users don't know the names of particular operators.
For example, =>
is (un?)officially known as a "hash rocket" in Ruby, but if I didn't know that, how would I search for it?
Also, "What is &:method?" is a common question to ask in the Ruby tag. Here's an example of Elastic Search surfacing a relevant question:
Query:
"&:method" ruby
.Top search result: ruby &:method syntax.
As far as I know (and correct me if I'm wrong), searching using literal operators isn't possible with Google. So there is that to consider if the built-in search is replaced with Google search results.
For example, if I search for "Ruby =>"
on Google, these are the top results:
https://www.ruby-lang.org/
http://en.wikipedia.org/wiki/Ruby_(programming_language)
http://en.wikipedia.org/wiki/Ruby
http://rubyonrails.org/
http://ruby-doc.org/
http://www.codecademy.com/tracks/ruby
http://rubyinstaller.org/
http://rubyinstaller.org/downloads/
http://rubykoans.com/
None of those takes me directly to any relevant documentation about what the =>
symbol does in Ruby. However, using the query "=>" ruby
with the built-in Elastic Search, the top result I get is:
site:
operator trick for Google, and the code and operator tricks for Elastic Search).:(
:P