The method _setResultsByPlaylist inside of search.js has logic which is copy/pasted from the loadDataSource method of playlist.js
It would be a good idea to figure out how to consolidate these and leverage the playlist's ability to load its own datasource from search.