String text = StrUtil.extractSearchTextFromHTML(
content.getContent());
if (text.length() > textSize) {
text = text.substring(0, textSize);
}
result.add(new Hit(page, text, language));
}
}
else {
logger.error("Page not found " + pageId + ". Rebuild index.");
}