From b6082a023ebd6cd2de6f604e89f3a776f9696fb5 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 26 Apr 2012 17:31:12 +1200 Subject: [PATCH] ENHANCEMENT Use CONTAINSTABLE for fulltext searches, as it provides better fuzzy search results. --- code/MSSQLDatabase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/MSSQLDatabase.php b/code/MSSQLDatabase.php index 7b467fa..8924194 100644 --- a/code/MSSQLDatabase.php +++ b/code/MSSQLDatabase.php @@ -1464,7 +1464,7 @@ class MSSQLDatabase extends SS_Database { if ($fields) $fieldNames = '"' . implode('", "', $fields) . '"'; else $fieldNames = "*"; - return "FREETEXTTABLE(\"$tableName\", ($fieldNames), '$keywords')"; + return "CONTAINSTABLE(\"$tableName\", ($fieldNames), '$keywords')"; } /**