Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-9473

Support word-by-word on SOUNDEX()

    XMLWordPrintable

Details

    • Task
    • Status: Open (View Workflow)
    • Trivial
    • Resolution: Unresolved
    • None
    • None

    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, '%')

      Attachments

        Activity

          People

            Unassigned Unassigned
            david.rodrigues David Rodrigues
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.