How search engines make an index. To find what you’re after, a search engine will scan its index of webpages for content related to your search. A search engine makes this index using a program called a ‘web crawler’. This automatically browses the web and stores information about the pages it visits.
For More Information Please Refer: https://www.bbc.co.uk/bitesize/topics/z7wtb9q/articles/ztbjq6f