old tf-idf code removed and excluding search term code removed