how to solve the search problem?