diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-11-10 22:00:48 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-11-10 22:00:48 +0000 |
commit | e21df9c85e85382f04fac4ae16e1ead9ad42e8a6 (patch) | |
tree | 8f2c483163ee73f637ac326011a655d0039ba054 /mod/search | |
parent | 5a5a7eb2f442fdedcc916009600aedf6e105a105 (diff) | |
download | elgg-e21df9c85e85382f04fac4ae16e1ead9ad42e8a6.tar.gz elgg-e21df9c85e85382f04fac4ae16e1ead9ad42e8a6.tar.bz2 |
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
Diffstat (limited to 'mod/search')
-rw-r--r-- | mod/search/start.php | 5 |
1 files changed, 4 insertions, 1 deletions
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. |