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

The FuzzyWord QueryBuilder double Levenshtein Distance #11

Closed
MacFJA opened this issue Jul 28, 2021 · 0 comments · Fixed by #14
Closed

The FuzzyWord QueryBuilder double Levenshtein Distance #11

MacFJA opened this issue Jul 28, 2021 · 0 comments · Fixed by #14
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@MacFJA
Copy link
Owner

MacFJA commented Jul 28, 2021

(new \MacFJA\RediSearch\Search\QueryBuilder\FuzzyWord('hello'))->render();

Should return %hello%, instead it return %%hello%%

The error is here:

return sprintf('%1$s%2$s%1$s', str_repeat('%%', $this->levenshteinDistance), EscapeHelper::escapeFuzzy($this->word));

@MacFJA MacFJA added the bug Something isn't working label Jul 28, 2021
@MacFJA MacFJA added the good first issue Good for newcomers label Aug 13, 2021
MacFJA added a commit that referenced this issue Aug 23, 2021
@MacFJA MacFJA self-assigned this Aug 23, 2021
MacFJA added a commit that referenced this issue Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant