You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Steven Rowe (JIRA)" <ji...@apache.org> on 2008/09/25 23:47:44 UTC

[jira] Issue Comment Edited: (LUCENE-973) Token of "" returns in CJK

    [ https://issues.apache.org/jira/browse/LUCENE-973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12634645#action_12634645 ] 

steve_rowe edited comment on LUCENE-973 at 9/25/08 2:45 PM:
-------------------------------------------------------------

bq. I think that your correction is better. 

Cool, the LUCENE-973.patch file incorporates this change - I had to add a recursion in order to handle this properly.

Also:

# Added a test for a single CJK character stream
# Sync'd with the current trunk (mostly reusable Token changes)
# Cleaned up formatting a little
# Switched token types to be constant ints instead of hard-coded strings

Note that this patch is nice not just because of the bug it fixes, but also (mainly?) because of the unit tests it adds -- currently CJKTokenizer has no tests.

      was (Author: steve_rowe):
    bq. I think that your correction is better. 

Cool, the LUCENE-973.patch file incorporates this change - I had to add a recursion in order to handle this properly.

Also:

#Added a test for a single CJK character stream
#Sync'd with the current trunk (mostly reusable Token changes)
#Cleaned up formatting a little
#Switched token types to be constant ints instead of hard-coded strings

Note that this patch is nice not just because of the bug it fixes, but also (mainly?) because of the unit tests it adds -- currently CJKTokenizer has no tests.
  
> Token of  "" returns in CJK
> ---------------------------
>
>                 Key: LUCENE-973
>                 URL: https://issues.apache.org/jira/browse/LUCENE-973
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Analysis
>    Affects Versions: 2.3
>            Reporter: Toru Matsuzawa
>         Attachments: CJKTokenizer20070807.patch, LUCENE-973.patch, with-patch.jpg, without-patch.jpg
>
>
> The "" string returns as Token in the boundary of two byte character and one byte character. 
> There is no problem in CJKAnalyzer. 
> When CJKTokenizer is used with the unit, it becomes a problem. (Use it with 
> Solr etc.)

-- 
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org