From e21df9c85e85382f04fac4ae16e1ead9ad42e8a6 Mon Sep 17 00:00:00 2001 From: brettp Date: Tue, 10 Nov 2009 22:00:48 +0000 Subject: Removing explicit MySQL 5.1-specific 'IN NATURAL LANGUAGE MODE' option. git-svn-id: http://code.elgg.org/elgg/trunk@3663 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/search/start.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mod/search/start.php b/mod/search/start.php index 354c5b2cd..18b743cde 100644 --- a/mod/search/start.php +++ b/mod/search/start.php @@ -524,7 +524,10 @@ function search_get_where_sql($table, $fields, $params) { if ((isset($params['advanced_search']) && $params['advanced_search']) || substr_count($query, '"') >= 2 ) { $options = 'IN BOOLEAN MODE'; } else { - $options = 'IN NATURAL LANGUAGE MODE'; + // natural language mode is default and this keyword isn't supported + // in < 5.1 + //$options = 'IN NATURAL LANGUAGE MODE'; + $options = ''; } // if short query, use query expansion. -- cgit v1.2.3