Tim Allison created LUCENE-5469:
-----------------------------------
Summary: 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
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 message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]