Skip to content
Snippets Groups Projects
Commit e5575c05 authored by srosse's avatar srosse
Browse files

OO-1717: replace the regex filter with the neko parser

parent 00630e48
No related branches found
No related tags found
No related merge requests found
......@@ -280,7 +280,7 @@ public class SearchResultsImpl implements SearchResults {
String title = doc.get(AbstractOlatDocument.TITLE_FIELD_NAME);
title = title.trim();
if(title.length() > 128) {
title = FilterFactory.getHtmlTagsFilter().filter(title);
title = FilterFactory.getHtmlTagAndDescapingFilter().filter(title);
title = Formatter.truncate(title, 128);
}
tokenStream = analyzer.tokenStream(AbstractOlatDocument.TITLE_FIELD_NAME, new StringReader(title));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment