Search. Organizing information. Ranking results. Rigorous testing. Detecting spam. Every time you search, there are thousands, sometimes millions, of webpages or other content that might be a match.
https://www.google.com/search/howsearchworks/how-search-works/