search returns directory and a loaditems() function to call when the dir is open (instead of hanging for a really long time when getting the results)