Search Not working as planned

http://dev.firesuite.net/sandiegobirthnetwork/members/

in the search box type “midwife” = 4 results

go back type “midwife san diego” = 0

whats going on?

here is my list shortcode the midwife is a custom field in service_type

[s2Member-List search_columns=“s2member_custom_field_service_type,s2member_custom_field_city,s2member_custom_field_street_address” link_display_name=“http://dev.firesuite.net/sandiegobirthnetwork/member/?ID=%%ID%%” limit=“10” levels=“1” enable_list_search=“yes” show_fields=“service_type,city,phone_number” template=“http://dev.firesuite.net/sandiegobirthnetwork/wp-content/themes/sdbn/member-list.php” /]

What’s the problem? You did a broad search and got 4 hits. Then you narrowed the search and got 0. There’s nothing odd about that.

Well… it should so the same results. As both “san diego” and “midwife” are present in the 4 members.

What’s the result if you try searching for just san diego, or even just diego?

san diego brings up all users with san diego present, its almost as if it only searches 1 term then quits

That’s what I suspected. But searches are handled by WordPress, not s2Member. What you’re experiencing is how poor the native WP search function is.

I suggest installing a search plugin, like Relevanssi, and see if that improves the search functionality.

Relevanssi doesnt weave into member-list.php from the s2 template files. it provides its own search results page, thus i would be remaking the wheel.
the plugin devs said it doesnt work like a google search, but I would think that a minor tweak to the wild card settings would yield some results.

wondering if anyone has found a good search solution for multiple terms?

I haven’t. If you find one, let us know, please.

Still looking… No plugin i have tried does what is needed. My thoughts are hooking into the s2member search and going from there. just havent had time to do it.

I suspect ElasticSearch will do what you want. There are a couple of plugins in the wp.org repo that can help you connect it all up. But it’s not simple and it’s definitely territory well beyond anything I’ve tried.

@matt, I was reading something quite unrelated and then came across this: https://wp-types.com/documentation/user-guides/front-page-filters/

It looks as though it provides precisely what you want.