SAP interview question

How to design a seach engine?