if (highlighters != null) {
UseCase ucProcessSearchHighlight = MonitorFactory.startUseCase("LuceneRequestProcessor." + "getObjects("
+ name + ")#processSearch.Highlight");
long s2 = System.currentTimeMillis();
for (Entry<String, ContentHighlighter> contentHighlighter : highlighters.entrySet()) {
ContentHighlighter highligther = contentHighlighter.getValue();
String att = contentHighlighter.getKey();
//IF crBean matches the highlighters rule => highlight
if (highligther.match(crBean)) {
String ret = null;
if (highligther instanceof AdvancedContentHighlighter) {
AdvancedContentHighlighter advancedHighlighter = (AdvancedContentHighlighter) highligther;
int documentId = Integer.parseInt(doc.get("id"));
ret = advancedHighlighter.highlight(parsedQuery, reader, documentId, att);
} else {
ret = highligther.highlight((String) crBean.get(att), parsedQuery);
}
if (ret != null && !"".equals(ret)) {
crBean.set(att, ret);
}
}