Unsupervised Text Generation by Learning from Search