Browse Source

disable min_score

Yuki Takei 7 years ago
parent
commit
7a094bf71b
1 changed files with 1 additions and 1 deletions
  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) {
 SearchClient.prototype.appendFunctionScore = function(query, queryString) {
   const User = this.crowi.model('User');
   const User = this.crowi.model('User');
   const count = User.count({}) || 1;
   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);
   logger.debug('min_score: ', minScore);