lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] [Commented] (SOLR-2396) add [ICU]CollationField
Date Tue, 22 Mar 2011 12:55:10 GMT


Robert Muir commented on SOLR-2396:

bq. A rough idea: It seems that ICU Collator Keys are null-terminated. 

This isn't always the case, at least at query-time for example if you are using a bound mode
( I think
for the UPPER_LONG case it does not exist. 

But, in any case I think we can't rely upon the fact that ICU might currently avoid zero bytes:
this isn't really specified anywhere and just an optional impl detail (

> add [ICU]CollationField
> -----------------------
>                 Key: SOLR-2396
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Robert Muir
>             Fix For: 4.0
>         Attachments: SOLR-2396.patch, SOLR-2396.patch, SOLR-2396.patch, SOLR-2396.patch
> In LUCENE-2551 collation support was changed to use byte[] keys.
> Previously it encoded sort keys with IndexableBinaryString into char[],
> but this is wasteful with regards to RAM and disk when terms can be byte.
> A better solution would be [ICU]CollationFieldTypes, as this would also allow locale-sensitive
range queries.

This message is automatically generated by JIRA.
For more information on JIRA, see:

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

View raw message