From c643e264707fc9c364660899f665c5decc8bfdfb Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 10 Apr 2011 20:54:42 +0000 Subject: [PATCH] MINOR Actually enable boosting git-svn-id: http://svn.silverstripe.com/projects/ss2doc/branches/v2@117894 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- sapphiredocs/code/tasks/RebuildLuceneDocsIndex.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapphiredocs/code/tasks/RebuildLuceneDocsIndex.php b/sapphiredocs/code/tasks/RebuildLuceneDocsIndex.php index d3e0bda..9589667 100644 --- a/sapphiredocs/code/tasks/RebuildLuceneDocsIndex.php +++ b/sapphiredocs/code/tasks/RebuildLuceneDocsIndex.php @@ -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);