MINOR Actually enable boosting

git-svn-id: http://svn.silverstripe.com/projects/ss2doc/branches/v2@117894 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2011-04-10 20:54:42 +00:00
parent 2aaec2f598
commit c643e26470
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ class RebuildLuceneDocsIndex extends BuildTask {
$titleField->boost = 1.5;
$breadcrumbField->boost = 1.5;
foreach(DocumentationSearch::$boost_by_path as $pathExpr => $boost) {
// if(preg_match($pathExpr, $page->getRelativePath())) $doc->boost = $boost;
if(preg_match($pathExpr, $page->getRelativePath())) $doc->boost = $boost;
}
$index->addDocument($doc);