From 2aaec2f5989793e8c51a0b4dc1d2a89cc3ea08ef Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 10 Apr 2011 20:52:09 +0000 Subject: [PATCH] ENHANCEMENT Reduced relevancy of changelog results git-svn-id: http://svn.silverstripe.com/projects/ss2doc/branches/v2@117893 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- mysite/_config.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mysite/_config.php b/mysite/_config.php index 86e321a..0b05088 100644 --- a/mysite/_config.php +++ b/mysite/_config.php @@ -57,3 +57,8 @@ if(Director::isLive()) { } Validator::set_javascript_validation_handler('none'); + +DocumentationSearch::$boost_by_path = array( + // Changelogs have heaps of phrases, but are rarely relevant for content searches + '/^changelog/' => 0.05 +); \ No newline at end of file