[ https://issues.apache.org/jira/browse/LUCENE-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12799831#action_12799831 ]
Robert Muir commented on LUCENE-2207: ------------------------------------- Hi Koji, this looks like a bug in CJK offset calculations, probably involving end() Personally i find the offset logic a little complex. It currently does both additions and subtractions to the offset and I think there is an off-by-one error in this. I will play around and see if I can simplify this logic, but please don't wait on me, if you have an idea already how to fix it! > CJKTokenizer generates tokens with incorrect offsets > ---------------------------------------------------- > > Key: LUCENE-2207 > URL: https://issues.apache.org/jira/browse/LUCENE-2207 > Project: Lucene - Java > Issue Type: Bug > Components: contrib/analyzers > Reporter: Koji Sekiguchi > Attachments: TestCJKOffset.java > > > If I index a Japanese *multi-valued* document with CJKTokenizer and highlight > a term with FastVectorHighlighter, the output snippets have incorrect > highlighted string. I'll attach a program that reproduces the problem soon. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org