How do search engines work?

Part ofComputingComputer scienceYear 3Year 4

Searching the world wide web

The world wide web is made up of nearly 2 billion websites.

Each has its own , or web address.

You'll know the URL of some of your favourite webpages. You use this to visit these webpages.

What happens if you want to go to a webpage and you don't know the URL?

A close up of a computer screen showing a web address
Back to top

What are search engines?

A computer screen showing the word "search" with a bar and magnifying glass underneath, and a website address at the top of the screen

A search engine is a program that finds webpages on the web.

You type in the words that you want information on.

The search engine then looks for webpages that contain that information.

A computer screen showing the word "search" with a bar and magnifying glass underneath, and a website address at the top of the screen
Back to top

How do search engines work?

A cartoon man behind a desk wearing a badge that says "Owen" and is looking at a pile of books

A search engine is a bit like a librarian.

When you go to the library, you can ask a librarian to find books on your favourite topic. The librarian searches through an index to find the books.

The index contains key information about each book in the library. The librarian then tells you the titles of the books that they have found.

A cartoon man behind a desk wearing a badge that says "Owen" and is looking at a pile of books
Back to top

How a search engine works

Image gallerySkip image gallerySlide1 of 5, A computer screen showing a search bar and web address, You type the keywords or a question into the search engine.
Back to top

How do we search for information?

A cartoon girl with pink hair wearing headphones and looking at a laptop

We need to think about the words that we use in our searches.

Typing in 'wellington' will return information on:

  • the capital city of New Zealand
  • wellington boots
  • a type of food

By adding extra words to the search, such as 'Wellington, New Zealand' we can get more accurate results.

A cartoon girl with pink hair wearing headphones and looking at a laptop
Back to top

Are all search engines the same?

A computer screen showing a child-friendly search screen with a friendly lizard holding up a magnifying glass above a search bar.

There are different search engines that you can use to help you find webpages. We use most search engines in a similar way.

Some search engines only search for certain content. They might only search for news stories, facts or images.

Other search engines are designed for children to use.

These search engines do not look at pages that are unsuitable for a child.

A computer screen showing a child-friendly search screen with a friendly lizard holding up a magnifying glass above a search bar.
Back to top

How do search engines make an index?

A tablet screen showing a webpage and pink bugs with magnifying glasses around the page

A search engine makes an using a web crawler.

A web crawler is an automated program that automatically browses the web and stores information about the webpages it visits.

Every time a web crawler visits a webpage, it makes a copy of the page and adds the URL to the index.

It also adds details of the content on the page, keywords and the type of media.

When you type words into a search engine, it searches its index for matches to your words.

A tablet screen showing a webpage and pink bugs with magnifying glasses around the page
Back to top

How do search engines order results?

A computer screen showing a search results page with lines numbered one to five and a play button to the side of them

Search engines use to order the list of webpages they return.

The webpages that are placed at the top of the list are usually the most useful to you.

All the webpages have been visited by the search engine’s web crawlers.

So the next time you use a search engine to find information, remember that web crawlers have created an index, and analgorithm was used to rank the results.

A computer screen showing a search results page with lines numbered one to five and a play button to the side of them
Back to top

Quiz

Back to top

Dance Mat Typing game! game

Build and test your computing skills with different levels of touch type challenges.

Dance Mat Typing game!
Back to top

More on Computer science

Find out more by working through a topic