Skip to content

String distance algorithms cleanup#27640

Merged
DaveCTurner merged 7 commits intoelastic:masterfrom
olcbean:distance_alg_cleanup
Dec 11, 2017
Merged

String distance algorithms cleanup#27640
DaveCTurner merged 7 commits intoelastic:masterfrom
olcbean:distance_alg_cleanup

Conversation

@olcbean
Copy link
Copy Markdown
Contributor

@olcbean olcbean commented Dec 4, 2017

Remove deprecated levenstein and jarowinkler string distance algs

Remove damerauLevenshtein : distanceVal is explicitly converted to lowercase, thus it can never match damerauLevenshtein

Use the ROOT locale for to lowercase

@elasticmachine
Copy link
Copy Markdown
Collaborator

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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

distanceVal is explicitly converted to lowercase, thus it can never match damerauLevenshtein

@DaveCTurner DaveCTurner added :Search Relevance/Suggesters "Did you mean" and suggestions as you type v7.0.0 labels Dec 4, 2017
Copy link
Copy Markdown
Member

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I asked for one wording change, otherwise I'm happy with this.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sounds a little more dramatic than it needs to: we haven't removed the algorithms, just the deprecated and non-preferred spellings. Could you reword more gently?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @DaveCTurner! Can you have another look?

@DaveCTurner
Copy link
Copy Markdown
Member

@elasticmachine please test this.

@olcbean olcbean force-pushed the distance_alg_cleanup branch from 995b400 to 6cfb15c Compare December 5, 2017 10:58
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about:

The following string distance algorithms were renamed in 6.0 and their old names were deprecated. The deprecated names have now been removed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about:

The following string distance algorithms were given additional names in 6.2 and their existing names were deprecated. The deprecated names have now been removed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestions!

@DaveCTurner
Copy link
Copy Markdown
Member

@elasticmachine please test this

@DaveCTurner
Copy link
Copy Markdown
Member

LGTM. Kicked off a CI run.

@DaveCTurner
Copy link
Copy Markdown
Member

@olcbean I think your branch is based on a commit in master which doesn't pass CI, as the failure here isn't obviously related to your changes and looks similar to some other failures from a few days ago. Could you merge in the latest master and we'll retry?

@olcbean olcbean force-pushed the distance_alg_cleanup branch from 52fd037 to 9f3a1b4 Compare December 7, 2017 13:41
@olcbean
Copy link
Copy Markdown
Contributor Author

olcbean commented Dec 7, 2017

@DaveCTurner thanks! I just rebased and pushed. Can you trigger another build?
( this issue has been fixed in 72800bb )

@DaveCTurner
Copy link
Copy Markdown
Member

@elasticmachine please test this

@DaveCTurner DaveCTurner merged commit 25c606c into elastic:master Dec 11, 2017
@DaveCTurner
Copy link
Copy Markdown
Member

Thanks for your work on this, @olcbean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :Search Relevance/Suggesters "Did you mean" and suggestions as you type v7.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants