lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (LUCENE-4310) NormalizeCharMap.build creates utf32-keyed automaton and uses it with utf16 keys
Date Fri, 17 Aug 2012 18:20:37 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-4310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael McCandless resolved LUCENE-4310.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 4.0
                   5.0

Thanks Dawid!
                
> NormalizeCharMap.build creates utf32-keyed automaton and uses it with utf16 keys
> --------------------------------------------------------------------------------
>
>                 Key: LUCENE-4310
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4310
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Dawid Weiss
>            Assignee: Michael McCandless
>             Fix For: 5.0, 4.0
>
>         Attachments: LUCENE-4310.patch, LUCENE-4310.patch
>
>
> NormalizeCharMap#build method is inconsistent with later use in MappingCharFilter
> {code}
>         final org.apache.lucene.util.fst.Builder<CharsRef> builder = new org.apache.lucene.util.fst.Builder<CharsRef>(FST.INPUT_TYPE.BYTE2,
outputs);
>         final IntsRef scratch = new IntsRef();
>         for(Map.Entry<String,String> ent : pendingPairs.entrySet()) {
>           builder.add(Util.toUTF32(ent.getKey(), scratch),
>                       new CharsRef(ent.getValue()));
> {code}
> (note BYTE2 vs. toUTF32 later on).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


Mime
View raw message