modified search functionality to handle comma-sperated lists of search terms