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: WP_User_Query Search returns more results than expected #60

Open
burhandodhy opened this issue Oct 10, 2022 · 1 comment
Open

BUG: WP_User_Query Search returns more results than expected #60

burhandodhy opened this issue Oct 10, 2022 · 1 comment
Labels
bug Something isn't working module:users

Comments

@burhandodhy
Copy link
Contributor

burhandodhy commented Oct 10, 2022

Describe the bug

WP_User_Query Search returns more results than expectation when we search for the user email. For example when I search for [email protected], ElasticPress also returns all the user those have gmail.com account

For example

Steps to Reproduce

  1. Create multiple users.
  2. Use WP_User_Query and search against any email address.
  3. EP returns more user than expectation.
@burhandodhy burhandodhy added the bug Something isn't working label Oct 10, 2022
@ws256
Copy link

ws256 commented Oct 26, 2022

Hello!
That's right, full-text search, the word gmail is everywhere.

  1. read BUG: WP_User_Query orderby #62
  2. use sorting by relevance

@felipeelia felipeelia transferred this issue from 10up/ElasticPress Mar 2, 2023
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:users
Projects
None yet
Development

No branches or pull requests

3 participants