Thanks for reporting this Garry. I just did a quick test on one of our development sites and the search seems to be working the same as the previous version (I didn’t test 3.1.4 yet) and working correctly.
I’m wondering if it’s maybe an issue with having multiple search fields, and the one you are not using for searching is somehow doing something weird. If you run a quick test and add a new user search to a page and put just one field for the search (e.g. just last name), does it still show results that shouldn’t be there?
Thread Starter
G
(@glienhard)
Yep, works great with only one search field so it only breaks with multiple search fields.
Hi Garry,
I tested it again, using multiple search fields, and it’s working correctly with the latest version. I tried using a field that I have for first name and one for last name. I just type something in the last name and nothing in the first name. I only get results that match what I typed.
There’s either something specific to your fields or an issue I can’t recreate. If you type something in one of the other fields, not last name, does it also display results that don’t match?
Could you provide a link to a search page on your site with multiple fields and provide a name that we can type in that is showing results that don’t match?
Could it also just be that the search_logic attribute in the shortcode isn’t set correctly? It sounds like maybe you want it set to “AND” so that only results that match everything entered in all fields display.