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

BUG: Fuzziness Not Updated to Zero When Using "Default" Algorithm #4026

Closed
1 task done
burhandodhy opened this issue Dec 4, 2024 · 2 comments
Closed
1 task done
Labels
bug Something isn't working
Milestone

Comments

@burhandodhy
Copy link
Contributor

Describe the bug

When the plugin is using the "Default" algorithm, the query continues to have the fuzziness set to "auto", even after attempting to set it to 0 using the following filter:

add_filter( 'ep_post_match_fuzziness', '__return_zero' );

This is happening because this filter override these value we set through ep_post_match_fuzziness filter

Steps to Reproduce

  1. Set the Algorithm to default wp elasticpress set-algorithm-version --version=default
  2. Add the filter to set the fuzziness add_filter( 'ep_post_match_fuzziness', '__return_zero' );
  3. Perform a search on frontend and check the query body.

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress and ElasticPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@burhandodhy burhandodhy added the bug Something isn't working label Dec 4, 2024
@burhandodhy burhandodhy added this to the 5.1.4 milestone Dec 4, 2024
@felipeelia
Copy link
Member

For the default algorithm, the filter would be ep_post_fuzziness_arg (see here). Did you try with that filter instead, @burhandodhy ?

@felipeelia
Copy link
Member

Updated the related documentation article now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants