Yuki Takei 7 лет назад
Родитель
Сommit
7a094bf71b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/server/util/search.js

+ 1 - 1
src/server/util/search.js

@@ -631,7 +631,7 @@ SearchClient.prototype.filterPagesByType = function(query, type) {
 SearchClient.prototype.appendFunctionScore = function(query, queryString) {
   const User = this.crowi.model('User');
   const count = User.count({}) || 1;
-  const minScore = queryString.length * 0.33;   // increase with length
+  const minScore = queryString.length * 0.2 - 1;   // increase with length
 
   logger.debug('min_score: ', minScore);