Yuki Takei преди 7 години
родител
ревизия
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);