Refactor search methods and add functionality to members and ghosts.