瀏覽代碼

Remove boost on description

Jordi Boggiano 12 年之前
父節點
當前提交
7af9ac905a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Packagist/WebBundle/Controller/WebController.php

+ 1 - 1
src/Packagist/WebBundle/Controller/WebController.php

@@ -142,7 +142,7 @@ class WebController extends Controller
                 }
                 $dismax = $select->getDisMax();
                 $dismax->setQueryFields(array('name^2', 'description', 'tags', 'text', 'text_ngram', 'name_split^1.5'));
-                $dismax->setPhraseFields(array('description^30'));
+                $dismax->setPhraseFields(array('description'));
                 //this is very lenient, and may want to be refined
                 $dismax->setMinimumMatch(1);
                 $dismax->setQueryParser('edismax');