The Wayback Machine - https://web.archive.org/web/20240728231126/https://www.geeksforgeeks.org/ranking-google-search-works/
Open In App

How ranking in Google Search Works !

Last Updated : 01 Dec, 2023
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report

You may first like to read:

How Google Search Works!

Let’s now have a look at some important terminology:

Search Engine: 

A program that searches for and identifies items in a database that corresponds to keywords or characters specified by the user, used especially for finding particular sites on the World Wide Web. Example: Google search engine, Yahoo, Bing etc.

Search Engine Index: 

A search engine index is a database that correlates keyword and websites so that the search engine can display websites that match a user’s search query. For example, if a user searches for Cheetah running speed, then the software spider searches these terms in the search engine index.

Web crawler: 

The first thing you need to understand is what a Web Crawler or Spider is and how it works. A Search Engine Spider (also known as a crawler, Robot, SearchBot or simply a Bot) is a program that most search engines use to find what’s new on the Internet. Google’s web crawler is known as GoogleBot. The program starts at a website and follows every hyperlink on each page. So it can be said that everything on the web will eventually be found and spidered, as the so called “spider” crawls from one website to another. When a web crawler visits one of your pages, it loads the site’s content into a database. Once a page has been fetched, the text of your page is loaded into the search engine’s index, which is a massive database of words, and where they occur on different web pages.

Robots.txt file: 

Web crawlers crawls on few websites without approval. Therefore every website includes a robots.txt file which contains instructions for the spider(web crawler) on which parts of the website to index, and which parts to ignore.

PageRank algorithm

PageRank works by counting the number and quality of links to a page to determine rough estimation of how important the webpage is. When a web crawler goes through each website, it follows all the links in the website,and checks for how many links are connected to each site. And then it assigns percentage to each webpage which represents the importance of the webpage using page rank algorithm. For example, if there are three webpages named A, B and C.

Suppose if the number of links that connect to B are from five webpages which have less percentage and to C webpage has the link from A which has higher percentage, since the one link to C comes from a important page and hence C is given higher value than B.

Image of pagerank algorithm

PageRank in graph of URLs is a probability distribution used to represent the likelihood that a person randomly clicking on links will arrive at any particular page.

So there are basically three steps that are involved in the web crawling procedure. First, the search bot starts by crawling the pages of your site. Then it continues indexing the words and content of the site, and finally it visits the links (web page addresses or URLs) that are found in your site

Importance of “robots.txt”

The first thing a spider is supposed to do when it visits your website, then it looks for a file called “robots.txt”. This file contains instructions for the spider on which parts of the website to index, and which parts to ignore. The only way to control what a spider sees on your site is by using a robots.txt file. All spiders are supposed to follow some rules, and the major search engines do follow these rules for the most part.

Fortunately, the major search engines like Google or Bing are finally working together on standards. When you search, spider searches index to find every page that includes those search terms. In this case, it finds hundreds or thousands of pages and google decide which few documents are really wanted by asking questions more than 200 of them like:

  • How many times does the page contains this keyword?
  • Do the words appear in the title, in the URL, directly adjacent?
  • Does the page include synonyms for these words?
  • Is this page a quality website or low quality?

And then it fetches hundreds of web pages and ranks these importance of web pages by using the PageRank algorithm which looks at how many outside links point to it and how important those links are? Finally, it combines all those factors together to produce each page overall score and send back the search results in about a half a second after submitting the search. Each page includes the title, URL, snippet of the text to decide is that the particular page we are looking for. And if not relevant, it also display related searches at the bottom of the page.

Related Articles:


Previous Article
Next Article

Similar Reads

How does Google Search Works: Crawling, Indexing, Ranking and Serving
Google is the most used search engine in the world. It contains billions of pages in different categories. Also, new pages are added continuously. Google discovers, crawls, and serves web pages through a complex and automated process that involves several steps. Well, it happens through four main processes: crawling, indexing, ranking, and serving.
13 min read
What is Search Engine and Google Page Ranking?
People all over the world turn to search engines to ask trivial questions, vitally important doubts and find an answer almost immediately. Searching is one of the most used actions on the internet. Search engines as an instrument of searching are very popular and frequently used sites on the internet. A search engine is a web-based program that is
9 min read
How Google Search Works!!
The Google Search: It happens billions of times a day in the blink of an eye and we can have anything before us our minds can think of! Let's explore the art and science that makes it possible. Crawling & Indexing: The journey of a query starts before we ever type a search, with crawling and indexing the web of trillions of documents. Google us
2 min read
SEO Keyword Strategy to Improve Your Search Ranking
Search Engine Optimization ( SEO) is still an important part of the online presence structure for enterprises in the dynamic world of digital marketing. A precisely considered keyword plan is one of the basic structural blocks of an effective SEO move. The foundation of your website's search ranking is made up of keywords. The Function of Keywords
5 min read
Ranking in Search Engines
Achieving a high ranking in search engines is crucial for the success of any website. Search Engine Optimization (SEO) is the key to unlocking this potential, helping websites rise through the ranks and gain visibility. In this article, we will delve into the intricacies of search engine ranking, exploring the factors that influence it and providin
3 min read
How Search Engine Indexing Works?
Search engine indexing is the process by which search engines like Google organize and store vast amounts of online content, making it readily accessible when you enter a search query. This process is done in the following steps: Step 1. CrawlingWeb crawlers, automated programs, or bots, explore the internet by following links from known websites t
2 min read
How User Behavior In Search Works?
User behavior in search is a fascinating and complex topic, with its very small details affects both searchers and the websites they land on. Here's a breakdown of key points: From the searcher's perspective Query formulation: People often start with short, simple queries and refine them based on results (15% refine their terms). Autocomplete sugge
3 min read
How to Google like a Pro – 10 Google Search Tips for Better Results!
Every single day, countless individuals rely on Google search to fulfill their diverse needs. Whether it's students seeking knowledge for their assignments, professionals conducting research, or even those looking for a quick dose of entertainment, Google is the go-to tool. However, are you truly harnessing the power of effective Google search tips
12 min read
Google Site Verification: Verify Your Site with Google Search Console
Verifying your website with Google Search Console is an essential step for site owners looking to mark their online presence. Google Search Console offers a suite of tools and insights that enable you to understand how your site performs in Google search results. Whether you're a seasoned web developer or a beginner in the digital realm, the verifi
9 min read
tf-idf Model for Page Ranking
tf-idf stands for Term frequency-inverse document frequency. The tf-idf weight is a weight often used in information retrieval and text mining. Variations of the tf-idf weighting scheme are often used by search engines in scoring and ranking a document's relevance given a query. This weight is a statistical measure used to evaluate how important a
7 min read
three90RightbarBannerImg