Skip to content
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

Update fuzzy.md #7842

Merged
merged 4 commits into from
Jul 30, 2024
Merged

Update fuzzy.md #7842

merged 4 commits into from
Jul 30, 2024

Conversation

svitlo
Copy link
Contributor

@svitlo svitlo commented Jul 26, 2024

Corrected the name of the string metric used by default

Description

The string measure used by default is called Damerau-Levenshtein distance, because transitions are not allowed in the definition of Levenshtein distance.

Issues Resolved

No issues resolved

Version

All

Checklist

  • By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and subject to the Developers Certificate of Origin.
    For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link

Thank you for submitting your PR. The PR states are In progress (or Draft) -> Tech review -> Doc review -> Editorial review -> Merged.

Before you submit your PR for doc review, make sure the content is technically accurate. If you need help finding a tech reviewer, tag a maintainer.

When you're ready for doc review, tag the assignee of this PR. The doc reviewer may push edits to the PR directly or leave comments and editorial suggestions for you to address (let us know in a comment if you have a preference). The doc reviewer will arrange for an editorial review.

@svitlo
Copy link
Contributor Author

svitlo commented Jul 26, 2024

@hdhalter, now I am really ready for your doc review.

@hdhalter hdhalter added 4 - Doc review PR: Doc review in progress backport 2.15 labels Jul 26, 2024
@hdhalter hdhalter assigned kolchfa-aws and unassigned hdhalter Jul 26, 2024
Copy link
Collaborator

@kolchfa-aws kolchfa-aws left a comment

Choose a reason for hiding this comment

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

Thank you, @svitlo! A couple of suggestions:

  • Please change line 17 to Damerau-Levenshtein as well.
  • Since there is a transpositions parameter to allow/disallow transpositions, I think we should include a sentence about the ability to disable transpositions and make it a true Levenshtein distance. Maybe on the same line 17?

@svitlo
Copy link
Contributor Author

svitlo commented Jul 27, 2024

  • Please change line 17 to Damerau-Levenshtein as well.

Done

  • Since there is a transpositions parameter to allow/disallow transpositions, I think we should include a sentence about the ability to disable transpositions and make it a true Levenshtein distance. Maybe on the same line 17?

Agree. Done.

@svitlo
Copy link
Contributor Author

svitlo commented Jul 27, 2024

@kolchfa-aws, could you please review my amendment.

@svitlo
Copy link
Contributor Author

svitlo commented Jul 27, 2024

@kolchfa-aws, I corrected the line 17 one more time to not break the thought regarding the usage of the field 'max_expansions'.

Could you please review it.

@svitlo svitlo mentioned this pull request Jul 27, 2024
1 task
Copy link
Collaborator

@kolchfa-aws kolchfa-aws left a comment

Choose a reason for hiding this comment

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

Thank you, @svitlo! One rewording suggestion. Also, please fix DCO.

_query-dsl/term/fuzzy.md Outdated Show resolved Hide resolved
Corrected the name of the string metric used by default

Signed-off-by: Tim <2527559+svitlo@users.noreply.github.com>
Signed-off-by: svitlo <tsplahtii@rolf.ru>
@svitlo
Copy link
Contributor Author

svitlo commented Jul 30, 2024

Also, please fix DCO.

@kolchfa-aws, fixed.

@kolchfa-aws
Copy link
Collaborator

@svitlo Looks like you've picked up a few extraneous commits along the way :) Please rebase and push again.

@svitlo
Copy link
Contributor Author

svitlo commented Jul 30, 2024

Please rebase and push again.

Done.

Could you please check.

@svitlo
Copy link
Contributor Author

svitlo commented Jul 30, 2024

@kolchfa-aws, ^

@kolchfa-aws
Copy link
Collaborator

Hmmmmm.... I can still see others' commits in this PR https://github.com/opensearch-project/documentation-website/pull/7842/commits

@svitlo
Copy link
Contributor Author

svitlo commented Jul 30, 2024

@kolchfa-aws, how can I fix it?

@kolchfa-aws
Copy link
Collaborator

Try rebasing the last 10 commits on your branch against main using this guide https://docs.github.com/en/get-started/using-git/about-git-rebase (so start with running git rebase --interactive HEAD~10). Let me know if you need help.

svitlo and others added 3 commits July 30, 2024 20:17
…role of the field 'transpositions'

Signed-off-by: svitlo <tsplahtii@rolf.ru>
…he field 'max_expansions'

Signed-off-by: svitlo <tsplahtii@rolf.ru>
Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
Signed-off-by: Tim <2527559+svitlo@users.noreply.github.com>
Signed-off-by: svitlo <tsplahtii@rolf.ru>
@svitlo
Copy link
Contributor Author

svitlo commented Jul 30, 2024

@kolchfa-aws, I followed your recommendations.

@kolchfa-aws
Copy link
Collaborator

Awesome, thanks! 🚢

@kolchfa-aws kolchfa-aws merged commit 3dcff57 into opensearch-project:main Jul 30, 2024
5 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 30, 2024
* Update fuzzy.md

Corrected the name of the string metric used by default

Signed-off-by: Tim <2527559+svitlo@users.noreply.github.com>
Signed-off-by: svitlo <tsplahtii@rolf.ru>

* correct the line 17 of fuzzy.md to clarify the distance name and the role of the field 'transpositions'

Signed-off-by: svitlo <tsplahtii@rolf.ru>

* correct the line 17 to not break the thought regarding the usage of the field 'max_expansions'

Signed-off-by: svitlo <tsplahtii@rolf.ru>

* Update _query-dsl/term/fuzzy.md

Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
Signed-off-by: Tim <2527559+svitlo@users.noreply.github.com>
Signed-off-by: svitlo <tsplahtii@rolf.ru>

---------

Signed-off-by: Tim <2527559+svitlo@users.noreply.github.com>
Signed-off-by: svitlo <tsplahtii@rolf.ru>
Co-authored-by: svitlo <tsplahtii@rolf.ru>
Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
(cherry picked from commit 3dcff57)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
github-actions bot pushed a commit that referenced this pull request Jul 30, 2024
@svitlo svitlo deleted the patch-1 branch July 31, 2024 15:18
mingshl pushed a commit to mingshl/documentation-website that referenced this pull request Aug 2, 2024
* Update fuzzy.md

Corrected the name of the string metric used by default

Signed-off-by: Tim <2527559+svitlo@users.noreply.github.com>
Signed-off-by: svitlo <tsplahtii@rolf.ru>

* correct the line 17 of fuzzy.md to clarify the distance name and the role of the field 'transpositions'

Signed-off-by: svitlo <tsplahtii@rolf.ru>

* correct the line 17 to not break the thought regarding the usage of the field 'max_expansions'

Signed-off-by: svitlo <tsplahtii@rolf.ru>

* Update _query-dsl/term/fuzzy.md

Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
Signed-off-by: Tim <2527559+svitlo@users.noreply.github.com>
Signed-off-by: svitlo <tsplahtii@rolf.ru>

---------

Signed-off-by: Tim <2527559+svitlo@users.noreply.github.com>
Signed-off-by: svitlo <tsplahtii@rolf.ru>
Co-authored-by: svitlo <tsplahtii@rolf.ru>
Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 - Doc review PR: Doc review in progress backport 2.15
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants