SA! Correct search function for resources