fetchResult.exists = true;
fetchResult.deleted = false;
reader.document(docId, fieldVisitor);
Document document = fieldVisitor.getDocument();
if (highlightQuery != null && fieldManager != null) {
HighlightOptions highlightOptions = selector.getHighlightOptions();
String preTag = highlightOptions.getPreTag();
String postTag = highlightOptions.getPostTag();
try {
document = HighlightHelper.highlight(docId, document, highlightQuery, fieldManager, reader, preTag,
postTag);
} catch (InvalidTokenOffsetsException e) {
LOG.error("Unknown error while tring to highlight", e);