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: "Did You Mean" feature offers suggestions even if the current search term is more appropriate #3602

Open
1 task done
JakePT opened this issue Aug 15, 2023 · 0 comments
Labels
bug Something isn't working module:did-you-mean Issues related to the Did You Mean functionality
Milestone

Comments

@JakePT
Copy link
Contributor

JakePT commented Aug 15, 2023

Describe the bug

While testing the plugin with the Theme Unit Test data and WooCommerce sample data I did a search for “Shirt” (there are several shirt products in the WooCommerce sample data) and it showed me the results, but it also said “Did you mean: shift”, which was strange because “shirt” is a valid word, and even has more results than a search “shift”.

Steps to Reproduce

  1. In a fresh WordPress install import the Theme Unit Test data.
  2. Install WooCommerce, and import the Sample Data.
  3. Install ElasticPress, activate the Did You Mean feature, and Sync.
  4. Add <?php do_action( 'ep_suggestions' ); ?> to the template used by the theme for search results, or activate Instant Results.
  5. Perform a search for "shirt". A suggestion to search for "shift" should appear.

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
@JakePT JakePT added bug Something isn't working module:did-you-mean Issues related to the Did You Mean functionality labels Aug 15, 2023
@JakePT JakePT added this to the 5.0.0 milestone Aug 15, 2023
@felipeelia felipeelia modified the milestones: 5.0.0, 5.1.0 Oct 24, 2023
@MARQAS MARQAS self-assigned this Nov 9, 2023
@felipeelia felipeelia modified the milestones: 5.1.0, 5.2.0 Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module:did-you-mean Issues related to the Did You Mean functionality
Projects
None yet
Development

No branches or pull requests

3 participants