ENHANCEMENT Use CONTAINSTABLE for fulltext searches, as it provides better fuzzy search results.

This commit is contained in:
Sean Harvey 2012-04-26 17:31:12 +12:00
parent 375d440677
commit b6082a023e

View File

@ -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')";
}
/**