From 173a72fa469ce324edf0e7c8a762a7348655b3d2 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sun, 1 Nov 2015 15:05:54 +0000 Subject: [PATCH] Search page title and tags --- build/index.php | 76 +++++++++++++++++++++++++++++++++----- module_index.json | 2 +- modules/feature-search.php | 71 ++++++++++++++++++++++++++++++----- settings.fragment.php | 5 +++ 4 files changed, 133 insertions(+), 21 deletions(-) diff --git a/build/index.php b/build/index.php index 85bee69..4d1355b 100644 --- a/build/index.php +++ b/build/index.php @@ -215,6 +215,11 @@ $settings->search_max_distance_context_display = 100; // term in the context below each search result. $settings->search_characters_context = 200; +// The weighting to give to search term matches found in a page's title. +$settings->search_title_matches_weighting = 10; + +// The weighting to give to search term matches found in a page's tags. +$settings->search_tags_matches_weighting = 3; // A string of css to include. Will be included in the of every page // inside a