How do search engines work?

The internet and world wide web is a marvellous thing. We open up our browser, navigate to a search engine – Google usually being the favourite – enter a search term (ie what we’re looking for and then voila, we get a list of options (search engine...