| String contextSummary="";
if(maxNumFragments>0)
contextSummary=Highlight.createContextSummary(highlighter,a,doc.get("contents"),maxNumFragments,maxLength,doc.get("summary"));
String summary = doc.get("summary");
return new SearchResulItemImpl(
name,
doc.get("title"),
score,
doc.get("key"),
doc.get("url"),
|