Attempt to figure out how search engine works