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:
parent
2aaec2f598
commit
c643e26470
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue