/** * search the cleaning agent according to given keyword * * @param keyword keyword for searching * @return integer representing the relevance */ public int search(String keyword) { return name.search(keyword) + description.search(keyword) + instruction.search(keyword); }