Refactor the action of question search.