• G

    (@glienhard)


    I just updated to 3.1.17 (from 3.1.4) and am seeing something weird with the results from the user-search shortcode. When I initiate a search, I’m not getting back the unique results for the search. It is displaying several records that do not have the search term in them. e.g. I searched on the ‘Last Name’ field and get results are not just limited to the term entered in the search field.

    I’ll keep digging but wanted to get this posted.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    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.

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘user-search Results’ is closed to new replies.