lucene-dev mailing list archives

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

     [ https://issues.apache.org/jira/browse/LUCENE-973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

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.

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


Mime
View raw message