I have fixed the problem. The problem is that there are line change delimiter($) between the xml tag and my index content. It causes the problem. I reprocess my index content and eliminate the delimiter and the highlight offset is correct now.
-- View this message in context: http://lucene.472066.n3.nabble.com/Why-my-highlights-are-wrong-one-character-offset-tp3860286p3873959.html Sent from the Solr - User mailing list archive at Nabble.com.