[
https://issues.apache.org/jira/browse/LUCENE-5469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13910770#comment-13910770
]
Tim Allison commented on LUCENE-5469:
-------------------------------------
int edit distance is cleaner, and I think I've now convinced myself that
although there are some gradations possible with percentage, it doesn't buy
much.
Unless anyone is surprised by the above, I'll close this issue in a few days
and modify 5205 to stop handling %.
Sorry about that! Thank you, again.
> Add small rounding to FuzzyQuery.floatToEdits
> ---------------------------------------------
>
> Key: LUCENE-5469
> URL: https://issues.apache.org/jira/browse/LUCENE-5469
> Project: Lucene - Core
> Issue Type: Bug
> Components: core/search
> Affects Versions: 5.0
> Reporter: Tim Allison
> Priority: Trivial
> Labels: easyfix
> Attachments: LUCENE-5469.patch
>
>
> I realize that FuzzyQuery.floatToEdits is deprecated, but I'd like to make a
> small fix for posterity. Because of floating point issues, if a percentage
> leads to a number that is very close to a whole number of edits, our cast to
> int can improperly cause misses.
> ddddd~0.8 will not match "ddddX"
> eeeee~0.8 will not match "eeee" or "eeeeee"
> This is a trivial part of the plan to reduce code duplication with
> LUCENE-5205.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]