lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Rowe (JIRA)" <>
Subject [jira] Updated: (LUCENE-973) Token of "" returns in CJK
Date Thu, 25 Sep 2008 21:45:46 GMT


Steven Rowe updated LUCENE-973:

    Attachment: LUCENE-973.patch

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.


#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:
>             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:
For additional commands, e-mail:

View raw message