searchLogic