lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (Updated) (JIRA)" <>
Subject [jira] [Updated] (LUCENE-3896) CharTokenizer has bugs for large documents.
Date Wed, 21 Mar 2012 11:03:39 GMT


Michael McCandless updated LUCENE-3896:

    Attachment: LUCENE-3896.patch

OK I think the problem here was the spoon-feeder would feed 1 character, and that 1 character
is a high-surrogate.  In that case, CharacterUtils.fill was returning 0, but I think should
re-attempt the read to pull more chars?

Attached patch seems to fix it... not sure we can do it cleaner though.
> CharTokenizer has bugs for large documents.
> -------------------------------------------
>                 Key: LUCENE-3896
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: modules/analysis
>            Reporter: Robert Muir
>            Priority: Blocker
>         Attachments: LUCENE-3896.patch, LUCENE-3896.patch
> Initially found by hudson from additional testing added in LUCENE-3894, but 
> currently not reproducable (see LUCENE-3895).
> But its easy to reproduce for a simple single-threaded case in TestDuelingAnalyzers.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message