Просмотр исходного кода

Changed the fields of phrase search target

Norio Suzuki 9 лет назад
Родитель
Сommit
49c234aaea
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      lib/util/search.js

+ 2 - 2
lib/util/search.js

@@ -384,8 +384,8 @@ SearchClient.prototype.appendCriteriaForKeywordContains = function(query, keywor
           query: phrase, // each phrase is quoteted words
           query: phrase, // each phrase is quoteted words
           type: 'phrase',
           type: 'phrase',
           fields: [ // Not use "*.ja" fields here, because we want to analyze (parse) search words
           fields: [ // Not use "*.ja" fields here, because we want to analyze (parse) search words
-            "path^2",
-            "body"
+            "path_raw^2",
+            "body_raw",
           ],
           ],
         }
         }
       });
       });