Google crawls the web to index over 60 trillion pages, checking for updates every 30 days. It aims to provide the most useful and relevant search results by ranking high quality sites people are interested in highest. When a user searches, algorithms attempt to determine the intent of the query and select documents from the index based on relevance, then rank them using over 200 factors like quality, freshness and personal context to display relevant results.