[feature]make search function work