Another aspect of Google that completely bugs me. Put in a search term. E.g. "fat wallet" " About 22,100,000 results " it says. Click through to the last page. " Page 6 of about 198 results (1.03 seconds) " So out of 22 million results, I can really only see 198?? That can't be right. Wait, it says, " In order to show you the most relevant results, we have omitted some entries very similar to the 198 already displaye…
I always figured this was a performance issue related to sharding in distributed systems. Deep pagination is an expensive operation so most search clusters limit the number of visible results by default. That, in addition to an assumption that results beyond a certain number are unlikely to be useful - how many times have you found something on page 10 vs just reformulated your search query? - means that most applica…
"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...