Returning a count of results, however (especially if it doesn't need to be precise), is a lot less expensive. Hence why Google is happy to give you the 22,000,000 number.
Returning a count of results, however (especially if it doesn't need to be precise), is a lot less expensive. Hence why Google is happy to give you the 22,000,000 number.
"Avoid using from and size to page too deeply or request too many results at once. Search requests usually span multiple shards. Each shard must load its requested hits and the hits for any previous pages into memory. For deep pages or large sets of results, these operations can significantly increase memory and CPU usage, resulting in degraded performance or node failures."
[0] https://www.elastic.co/guide/en/elasticsearch/reference/curr...
OK, I see now. I tried it on Bing and got similar results with two small caveats. First, Bing gave me 861 accessible results, which is a base 2 order of magnitude greater than Google's. Second, Bing's total number isn't nearly as astronomical, it claims only 191K total results, not Google's 22M.
Could it be that Google has just indexed 100x more terms compared with Bing? Maybe, but my anecdotal use of both of them doesn't really seem to indicate that Bing is so deficient. For example, I tried using a phrase that would come up with just a few results. "bioavailable turmeric extract formulation" (in quotes) yielded 24 results on Google, (plus 4 ad results on top). On Bing I got 33 results, plus 2 ads on top. In fact, Bing looks more like "old Google" than new Google looks like old Google.
The ElasticSearch documentation is actually pretty good documentation of all search engines in general.