Google even has a Custom Search API that allows a site's backend to treat Google Search as (essentially) its own search cluster, ala ElasticSearch.
Oddly, I've never heard of any actually using this API. Sites that integrate with Google only ever seem to do so by having their search box bounce you to a Google Search page.