Use expanded query to find snippet when the phrase is long

And fix the problem of too long snippets.