[MDEV-9473] Support word-by-word on SOUNDEX() Created: 2016-01-27  Updated: 2016-01-27

Status: Open
Project: MariaDB Server
Component/s: None
Fix Version/s: None

Type: Task Priority: Trivial
Reporter: David Rodrigues Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: function, soundex


 Description   

Currently SOUNDEX() supports only single words. If is possible allow it to split each words by some character, individually, will be great.

SOUNDEX('Hello World') => 'H4643'
SOUNDEX('Hello World', ' ') => 'H400 W643'
SOUNDEX('Hello World', '%') => 'H400%W643'

It will allow do search not related to full search (eg. tinytext) with similar words (ex. hello vs. helo) using, for instance, a LIKE. Currently I have my own implementation in a stored procedure, but it is too slow (http://pastebin.com/RhkUnjut).

Then I use like:

WHERE SOUNDEX(?, '%') LIKE SOUNDEX(name, '%')


Generated at Thu Feb 08 07:34:56 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.