From 4157a9fb6c2d7e16778c6a7d392b72556b7c2cd1 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 29 Oct 2015 11:21:04 +0000 Subject: [PATCH] Begin interface work. Why is the being inserted into another ??? --- build/index.php | 204 +++++++++++++++++++++++++++++++++++-- module_index.json | 4 +- modules/feature-search.php | 170 +++++++++++++++++++++++++++++-- modules/parser-default.php | 2 +- settings.fragment.php | 10 ++ 5 files changed, 374 insertions(+), 16 deletions(-) diff --git a/build/index.php b/build/index.php index d5c4614..6193d00 100644 --- a/build/index.php +++ b/build/index.php @@ -206,6 +206,16 @@ $settings->mime_extension_mappings_location = "/etc/mime.types"; $settings->min_preview_size = 1; $settings->max_preview_size = 2048; +// The maximum distance terms should be apart in the context display below +// search results. This is purely aesthetical - it doesn't affect the search +// algorithm. +$settings->search_max_distance_context_display = 100; + +// The number of characters that should be displayed either side of a matching +// term in the context below each search result. +$settings->search_characters_context = 200; + + // A string of css to include. Will be included in the of every page // inside a