top of page

Mini Search Engine Lab
Lab designed by Rajat Patil

This code is a tiny search engine that shows how searching works. It has a few example web pages and keeps track of which words appear on each page. When you type something in, the engine splits your query into keywords and ignores common words like the or is. Then it looks up the keywords in its index to see which pages contain them. After that, it scores the pages based on things like whether the words appear in the title or headings and how many keywords matched. Finally, it shows the top results with the matching words highlighted. The animation just shows your query moving through the steps so you can see how it all happens.

It is not the real internet, but the steps it shows are exactly what real search engines do. To learn more, check out the blog here (click the link): https://stemiscope.wixsite.com/stemiscope/post/how-does-website-searching-actually-work 

STAY IN THE KNOW

Thanks for submitting!

© 2025 by The STEMiscope. All rights reserved.

bottom of page