mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-10-22 15:05:45 +00:00
BUGFIX PostgreSQLDatabase::searchEngine() should use "Relevance" instead of the same name without the quotes (this was changed in SearchForm r113295)
This commit is contained in:
parent
07e7579f4f
commit
88a8cef187
@ -1434,7 +1434,7 @@ class PostgreSQLDatabase extends SS_Database {
|
||||
$query->select=$select[$row['table_name']];
|
||||
$query->from['tsearch']=", to_tsquery('english', '$keywords') AS q";
|
||||
|
||||
$query->select[]="ts_rank(\"{$row['column_name']}\", q) AS Relevance";
|
||||
$query->select[]="ts_rank(\"{$row['column_name']}\", q) AS \"Relevance\"";
|
||||
|
||||
$query->orderby=null;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user