Intermediate
40 mins
Teacher/Student led
+80 XP

How Search Engines Find and Rank Pages

Find out the key differences between web browsers and search engines. Act as a search engine to rank pages for a query and then use real searches to see how different factors change the order of results shown.

Teacher Class Feed

Load previous activity

    1 - Start ~4 mins

    Illustration for StartLast time you followed a message from your browser out to a server and back. Today the question is different: when you type words into a search box, how does the computer decide which pages to show you, and in what order?

    You will act as the search engine yourself, then try real searches and notice what changes the order of the results.

    2 - Browser or Search Engine? ~6 mins

    What a search engine does

    A web browser is the app you open pages in (Chrome, Edge, Firefox, Safari). You give it an address, and it fetches that page.

    A search engine is a service that finds pages matching the words you type, then puts them in an order it thinks will help you. Google, Bing and DuckDuckGo are search engines. You usually reach them through a browser.

    Behind the scenes a search engine roughly does three jobs:

    1. Crawl: visit pages across the web and follow the links on them.
    2. Index: store what each page is about so it can be looked up quickly.
    3. Rank: when you search, put the matching pages in an order based on word match and other signals. You will try these next.

    Ranking is the part people argue about, because different goals produce different orders. You are about to try that for yourself.

    3 - Hands-on: Be the Search Engine ~12 mins

    Someone has searched for how do I start coding. Four pages could answer them. Put the pages in the order you would show them, then compare your order with how a real ranker orders them under two different goals.

    For each goal, read the takeaway: it tells you what that ranking was optimising for.

    Be the search engine

    4 - Hands-on: Same Search, Different Results ~12 mins

    Run 3 short trials; write one line each for the first two. Your teacher leads Trial 1. Then pairs try Trial 2. Trial 3 is extra if you finish early.

    Trial 1: search vs address (whole class). Watch your teacher type a full site address (for example www.met.ie) into the address bar and open that page. Then watch them type only the words Irish weather forecast into a search engine. What is different about how the page was reached each time?

    When Trial 1 is done, move on:

    • Trial 2: change the words (pairs, about 3 minutes). Search for GAA fixtures this weekend, then search for hurling matches Saturday. Do the top results change? Which words seem to pull different pages up?
    • Trial 3 (extra): change one detail (pairs). Pick one of those searches and try it again with a small change: add a year, a county name, or the word live. What moves up or down?

    Write in your copy / on the exit slip:

    • Trial 1: what was typed / how getting there differed
    • Trial 2: wording change / what reordered

    If you do Trial 3, add one more line: detail added / signal that seemed to matter (words, freshness, location, popularity).

    Done looks like:

    • You can say in one sentence how typing an address differs from searching with words
    • You have one concrete example of a wording change that reordered the results
    Exploration

      5 - Make Sense ~3 mins

      A browser fetches the page you name. A search engine finds candidate pages and ranks them for a goal.

      Ranking is not a single score of "best page". It weighs signals such as word match, how recent a page is, and who links to it. Change the goal, or change the words, and the order changes with them.

      123learn · Online learning platform

      Unlock the full learning experience

      You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.

      Hundreds of curriculum-aligned lessons
      Interactive activities in every lesson
      Printable resources & progress tracking
      Copyright Notice
      This lesson is copyright of Coding Ireland 2017 - 2025. Unauthorised use, copying or distribution is not allowed.
      🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more