}
Closure withHighlighter = (Closure) options.get("withHighlighter");
if (withHighlighter == null) {
return;
}
withHighlighter = (Closure) withHighlighter.clone();
int offset = org.apache.commons.collections.MapUtils.getIntValue(options, "offset");
for (int i = 0, length = ((Collection) collectedHits).size(); i < length; i++) {
withHighlighter.call(new Object[] {
hits.highlighter(offset + i), i, searchResult
});