int docid = scoreDoc.doc;
Document doc = multiReader.document(docid);
String content = doc.get("content");
Scorer qs = new QueryScorer(q);
SimpleHTMLFormatter formatter = new SimpleHTMLFormatter("<span class=\"hl\">", "</span>");
Highlighter hl = new Highlighter(formatter, qs);
String[] fragments = hl.getBestFragments(analyzer, "content", content, 1);