Skip to content

Commit

Permalink
Galat : MySQL Server said : Can't find FULLTEXT
Browse files Browse the repository at this point in the history
Ini terjadi pada versi database mariadb: 10.0.x dan 10.1.x juga pada mysql versi 5.5.62. Solusinya menambahkan kata "IN BOOLEAN MODE" karena tipe pencariannya menggunakan pecarian full text.
  • Loading branch information
drajathasan authored and idoalit committed Sep 1, 2019
1 parent c690f50 commit 7d89944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/modules/system/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ function() {
$criteria = 'c.content_id IS NOT NULL ';
if (isset($_GET['keywords']) AND $_GET['keywords']) {
$keywords = $dbs->escape_string($_GET['keywords']);
$criteria .= " AND MATCH(content_title, content_desc) AGAINST('$keywords')";
$criteria .= " AND MATCH(content_title, content_desc) AGAINST('$keywords' IN BOOLEAN MODE)";
}
$datagrid->setSQLCriteria($criteria);

Expand Down

0 comments on commit 7d89944

Please sign in to comment.