You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
We could store two fields for emails, one with the full email and another with its pieces (user, domain, etc.), so we could search through them separately. As that would require a change in the mapping, I'd prefer a smaller change that would fulfill our needs in this issue, but that could the fallback we need.
@felipeelia Bad idea. Example, there is a login field, I have many users: user-8806019, user-0511554, etc. The search does not work because it splits the word by the hyphen. The results contain many thousands of matches for "user" value.
Imagine how many variations there are in how to write an email address.
Because of this, it was not possible to use the plugin in the admin panel to search for users.
Need to configure Fuzziness for the fields. Or use some other parameters.
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 accountFor example
Steps to Reproduce
The text was updated successfully, but these errors were encountered: