mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 15:05:50 +00:00
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…
x
Reference in New Issue
Block a user