You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2014/07/15 16:20:04 UTC

[jira] [Resolved] (LUCENE-5824) hunspell FLAG LONG implemented incorrectly

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

Robert Muir resolved LUCENE-5824.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 4.10
                   5.0

> hunspell FLAG LONG implemented incorrectly
> ------------------------------------------
>
>                 Key: LUCENE-5824
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5824
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>             Fix For: 5.0, 4.10
>
>         Attachments: LUCENE-5824.patch
>
>
> If you have more than 256 flags, you run out of 8-bit characters, so you have to use another flag type to get 64k:
> * UTF-8: 16-bit BMP flags
> * long: two-character flags like 'AB'
> * num: decimal numbers like '10234'
> But our implementation for 'long' is wrong, it encodes as 'A+B', which means it cant distinguish between 'AB' and 'BA' and causes overgeneration.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org