You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alan Woodward (JIRA)" <ji...@apache.org> on 2019/01/24 10:20:00 UTC
[jira] [Updated] (LUCENE-8657) CharsRef.compareTo() should always
be in UTF-8 order
[ https://issues.apache.org/jira/browse/LUCENE-8657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alan Woodward updated LUCENE-8657:
----------------------------------
Attachment: LUCENE-8657.patch
> CharsRef.compareTo() should always be in UTF-8 order
> ----------------------------------------------------
>
> Key: LUCENE-8657
> URL: https://issues.apache.org/jira/browse/LUCENE-8657
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Alan Woodward
> Assignee: Alan Woodward
> Priority: Major
> Attachments: LUCENE-8657.patch
>
>
> CharsRef.compareTo() currently directly compares byte values. However, everywhere that CharsRef objects are compared in the codebase instead uses the deprecated UTF16SortedAsUTF8Comparator static comparator. We should just reimplement compareTo() to use UTF-8 comparisons instead, and remove the deprecated methods.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org