Here's a neat infographic on how engines work. Be sure to click on the image in the link, because it animates, and that's the coolest part. On Visual.ly

[EDIT] Tried to get their embed code to work... no dice.