Generate snippets for every doc by reading through the its html file and collecting the context in which query word appears