CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#11898] Add some form of approximate string matching to the search module

avatar
Created By: Tristan (tristan)
Date Submitted: 2018-09-17 03:35

Assigned To:
Resolution: Won't Fix
State: Open
Summary:
Add some form of approximate string matching to the search module
Detailed Description:
Add some form of approximate string matching to the search module so a search
for:

aproximate or approximat or approxymate

would also return a result with a link to the page with the word:

approximate

History

Comments
avatar
Date: 2018-09-22 10:37
Posted By: Robert Campbell (calguy1000)

once you consider multiple languages this is not possible.   and the
methodologies to do it are mysql specific.
so this is not something that is either feasible or reasonable in a distributed
application.

You could fork the search module to handle this though.
      
avatar
Date: 2018-09-24 04:57
Posted By: Tristan (tristan)

Some form of approximate string matching and "not possible" in one sentence
sounds a bit exaggerated considering other "distributed applications" do have
this functionality build in.

Let's hope someone agrees and has the time to fork the search module if nobody
else in the dev team thinks the search module is in dire need of an update.
      
avatar
Date: 2018-09-26 11:16
Posted By: Matt Hornsby (DIGI3) (DIGI3)

What about a more simple option (and it could be a preference and/or checkbox to
include in the search form) to have implied wildcards:
so, if option is enabled, searching for 'foo' would include results such as
'foobar' and possibly 'barfood'.

We don't need to overthink multilanguage support, føø wouldn't return foobar but
it would return føøbar.
      
Updates

Updated: 2018-09-22 10:37
resolution_id: => 8