mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
ENHANCEMENT Use CONTAINSTABLE for fulltext searches, as it provides better fuzzy search results.
This commit is contained in:
parent
375d440677
commit
b6082a023e
@ -1464,7 +1464,7 @@ class MSSQLDatabase extends SS_Database {
|
|||||||
if ($fields) $fieldNames = '"' . implode('", "', $fields) . '"';
|
if ($fields) $fieldNames = '"' . implode('", "', $fields) . '"';
|
||||||
else $fieldNames = "*";
|
else $fieldNames = "*";
|
||||||
|
|
||||||
return "FREETEXTTABLE(\"$tableName\", ($fieldNames), '$keywords')";
|
return "CONTAINSTABLE(\"$tableName\", ($fieldNames), '$keywords')";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user