Build a search engine in java and do MAP evaluation on CACM and MEDLAR collection