-
Notifications
You must be signed in to change notification settings - Fork 25.3k
deprecating jarowinkler
in favor of jaro_winkler
#27526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
@elasticmachine please test this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left some questions.
// TODO Jaro and Winkler are 2 people - so apply same naming logic | ||
// as damerau_levenshtein | ||
} else if ("jarowinkler".equals(distanceVal)) { | ||
} else if ("jaro_winkler".equals(distanceVal) || "jarowinkler".equals(distanceVal)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need to support both? Can we settle on one (with the underscore), and deprecate the other? And same for damerau_levenshtein
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for deprecation of jarowinkler
.
Not sure about that score creep tho :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, the other should be separate.
8708dcc
to
a7477f9
Compare
Jaro-Winkler
distance naming within the codebasejarowinkler
in favor of jaro_winkler
I just deprecated |
retest this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@DaveCTurner Did you want to give this one a review too? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM too.
Jaro and Winkler are two people, so we should use the same naming convention as for Damerau–Levenshtein.
Merged and backported to |
Thanks @DaveCTurner. |
Jaro-Winkler
distance alg is following the naming convention used forDamerau–Levenshtein
as per comment