Fixing search controller to support an array of search terms.