You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Toke Eskildsen (JIRA)" <ji...@apache.org> on 2013/02/26 10:46:14 UTC
[jira] [Updated] (LUCENE-4799) Enable extraction of originating
term for ICU collation keys
[ https://issues.apache.org/jira/browse/LUCENE-4799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Toke Eskildsen updated LUCENE-4799:
-----------------------------------
Attachment: LUCENE-4799.patch
Patch that enables originating term concatenation for ICUCollatedTermAttributeImpl and related classes.
The unit-test is ugly and should probably be re-written.
> Enable extraction of originating term for ICU collation keys
> ------------------------------------------------------------
>
> Key: LUCENE-4799
> URL: https://issues.apache.org/jira/browse/LUCENE-4799
> Project: Lucene - Core
> Issue Type: Improvement
> Components: core/other
> Affects Versions: 4.1
> Reporter: Toke Eskildsen
> Priority: Minor
> Labels: collator, facet
> Attachments: LUCENE-4799.patch
>
>
> By concatenating generated ICU collation keys bytes with the originating term, it is possible to extract the originating term at a later time. This makes it possible to build a collator sorted facet field and similar multi-value/document structures.
> ICU collation keys are guaranteed to be terminated by a 0 (https://ssl.icu-project.org/apiref/icu4j48rc1/com/ibm/icu/text/CollationKey.html) and since comparison of keys stop when a 0 is encountered, the addition of the originating term does not affect sort order. As 0 are _only_ used for termination in the key bytes, the extraction of the originating term is unambiguous.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org