Fundamentals to build a search engine