ENH: Added search function to take a dict