Use SOUNDS LIKE as well as LIKE to get matches for search.
SELECT true
FROM ".GLM_MEMBERS_PLUGIN_DB_PREFIX."members
WHERE id = T.member
- AND name LIKE '%$textSearch%'
- )
+ AND (
+ name SOUNDS LIKE '%$textSearch%'
+ OR name LIKE '%$textSearch%'
+ )
+ )
+ OR T.descr SOUNDS LIKE '%$textSearch%'
OR T.descr LIKE '%$textSearch%'
OR T.city IN (
SELECT id
FROM " . GLM_MEMBERS_PLUGIN_DB_PREFIX . "cities
- WHERE name LIKE '%$textSearch%' )
+ WHERE name SOUNDS LIKE '%$textSearch%'
+ OR name LIKE '%$textSearch%'
+ )
)";
}
return $queryParts;
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
-Version: 1.0.24
+Version: 1.0.25
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wmta