Hi everybody,
I have a problem with the search results, the highlighted teaser text is
in lowercase. The original content is not.
I tracked it down to the following code:
String highlightedText = thisHit.getTeaser();
boolean isFile = (thisHit.getType() ==
JahiaSearchHitInterface.FILE_TYPE);
CompassHighlighter highlighter =
thisHit.highlighter();
if ( highlighter != null ){
highlighter.setSeparator("<p
style=\"font-weight: bold\">........</p>");
highlighter.setMaxNumFragments(3);
highlightedText =
highlighter.fragmentsWithSeparator(JahiaSearchConstant.CONTENT_FULLTEXT_
SEARCH_FIELD);
highlightedText =
highlightedText.replaceAll("\\r\\n","\r");
highlightedText =
highlightedText.replaceAll("\\r{2,}","<br/>");
}
Is there a way to tell the highlighter to leave te case as is?
Kind regards,
Nicolas
_______________________________________________
dev_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/dev_list