You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the mapbender/http/classes/class_metadata.php in line 1284, the code could be change from: $whereStr .= "searchtext LIKE $" . ($i + 1);
to $whereStr .= "(strict_word_similarity($" . ($i + 1) . ", searchtext) > 0.2)";
In order to use strict_word_similarity( ) function, we need to install in the postgres first. CREATE EXTENSION pg_trgm;
Work still need to be done: Check the performance of the search, since a new algorithm is used instead of LIKE.
The text was updated successfully, but these errors were encountered:
Issue copied from:
mrmap-community#55
For the fuzzy search, there are some algorithm like levenshtein, soundex, word_similarity and so on.
https://www.postgresql.org/docs/current/fuzzystrmatch.html
https://www.postgresql.org/docs/current/pgtrgm.html
In the mapbender/http/classes/class_metadata.php in line 1284, the code could be change from:
$whereStr .= "searchtext LIKE $" . ($i + 1);
to
$whereStr .= "(strict_word_similarity($" . ($i + 1) . ", searchtext) > 0.2)";
In order to use strict_word_similarity( ) function, we need to install in the postgres first.
CREATE EXTENSION pg_trgm;
Work still need to be done: Check the performance of the search, since a new algorithm is used instead of LIKE.
The text was updated successfully, but these errors were encountered: