lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (LUCENE-2016) replace invalid U+FFFF character during indexing
Date Thu, 29 Oct 2009 17:23:59 GMT

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

Robert Muir edited comment on LUCENE-2016 at 10/29/09 5:22 PM:
---------------------------------------------------------------

even disregarding the problem, I think FFFD is much better than truncation... its what i expect.

but I think we should handle U+FFFE also. (and FDD0-FDEF)

there are actually a few more 'guaranteed not to be a characters, not for interchange' outside
of the BMP, but that invalid surrogate logic looks pretty hairy already :)
to see the full list, look at http://www.unicode.org/charts/

under subheading: 
Noncharacters in Charts

Reserved range

Noncharacters at end of ...

      was (Author: rcmuir):
    even disregarding the problem, I think FFFD is much better than truncation... its what
i expect.

but I think we should handle U+FFFE also. 

there are actually a few more 'guaranteed not to be a characters, not for interchange' outside
of the BMP, but that invalid surrogate logic looks pretty hairy already :)
to see the full list, look at http://www.unicode.org/charts/

under subheading: 
Noncharacters in Charts

Reserved range

Noncharacters at end of ...
  
> replace invalid U+FFFF character during indexing
> ------------------------------------------------
>
>                 Key: LUCENE-2016
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2016
>             Project: Lucene - Java
>          Issue Type: Bug
>    Affects Versions: 2.4, 2.4.1, 2.9
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 2.9.1, 3.0
>
>         Attachments: LUCENE-2016.patch
>
>
> If the invalid U+FFFF character is embedded in a token, it actually causes indexing to
silently corrupt the index by writing duplicate terms into the terms dict.  CheckIndex will
catch the error, and merging will hit exceptions (I think).
> We already replace invalid surrogate pairs with the replacement character U+FFFD, so
I'll just do the same with U+FFFF.

-- 
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