summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-12-18 12:28:26 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-12-18 12:28:26 +0000
commit8b0461940d2e1f90799e03e226fed1fd5782e42b (patch)
tree765b3a023a800c162a57bfb4f46615eef7dd97d0
parent0dfc8e059f24f10f0e23797ea6635cfde6704c07 (diff)
downloadbrdo-8b0461940d2e1f90799e03e226fed1fd5782e42b.tar.gz
brdo-8b0461940d2e1f90799e03e226fed1fd5782e42b.tar.bz2
- Fix minimum_word_size default values
-rw-r--r--modules/search.module4
-rw-r--r--modules/search/search.module4
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/search.module b/modules/search.module
index 66a1c0d7e..51a6dc745 100644
--- a/modules/search.module
+++ b/modules/search.module
@@ -436,7 +436,7 @@ function search_preprocess(&$text) {
* @ingroup search
*/
function search_index($sid, $type, $text) {
- $minimum_word_size = variable_get('minimum_word_size', 4);
+ $minimum_word_size = variable_get('minimum_word_size', 3);
// Link matching
global $base_url;
@@ -726,7 +726,7 @@ function _search_parse_query(&$word, &$scores, $not = false) {
$split = explode(' ', $word);
foreach ($split as $s) {
$num = is_numeric($s);
- if ($num || drupal_strlen($s) >= variable_get('minimum_word_size', 4)) {
+ if ($num || drupal_strlen($s) >= variable_get('minimum_word_size', 3)) {
$scores[] = $num ? ((int)ltrim($word, '-0')) : $s;
}
}
diff --git a/modules/search/search.module b/modules/search/search.module
index 66a1c0d7e..51a6dc745 100644
--- a/modules/search/search.module
+++ b/modules/search/search.module
@@ -436,7 +436,7 @@ function search_preprocess(&$text) {
* @ingroup search
*/
function search_index($sid, $type, $text) {
- $minimum_word_size = variable_get('minimum_word_size', 4);
+ $minimum_word_size = variable_get('minimum_word_size', 3);
// Link matching
global $base_url;
@@ -726,7 +726,7 @@ function _search_parse_query(&$word, &$scores, $not = false) {
$split = explode(' ', $word);
foreach ($split as $s) {
$num = is_numeric($s);
- if ($num || drupal_strlen($s) >= variable_get('minimum_word_size', 4)) {
+ if ($num || drupal_strlen($s) >= variable_get('minimum_word_size', 3)) {
$scores[] = $num ? ((int)ltrim($word, '-0')) : $s;
}
}