lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Rowe (JIRA)" <>
Subject [jira] Commented: (LUCENE-2019) map unicode process-internal codepoints to replacement character
Date Fri, 30 Oct 2009 23:52:59 GMT


Steven Rowe commented on LUCENE-2019:

bq. by disallowing all noncharacters as term text, lucene is *more free* to use them as delimiters,
and sentinel values, and such, as specified in chapter 3 of the standard.

Lucene is more free, but Lucene's users are not.  Quite the contrary.

IMHO, Lucene's users (applications that incorporate the Lucene library) should be able to
use Unicode data in ways that the standard allows ("Applications are free to use any of these
noncharacter code points internally").

U+FFFF was chosen for Lucene-internal use for reasons very similar to those you're bringing
up, Robert: something like "who would ever want to use non-characters in an index?"  However,
this choice does not obligate Lucene to take the same action for all other non-characters.

I think the fix here is documentation, not proscription.

> map unicode process-internal codepoints to replacement character
> ----------------------------------------------------------------
>                 Key: LUCENE-2019
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>            Reporter: Robert Muir
>            Priority: Minor
>         Attachments: LUCENE-2019.patch
> A spinoff from LUCENE-2016.
> There are several process-internal codepoints in unicode, we should not store these in
the index.
> Instead they should be mapped to replacement character (U+FFFD), so they can be used
> An example of this is how Lucene Java currently uses U+FFFF process-internally, it can't
be in the index or will cause problems. 

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