diff --git a/Changelog.md b/Changelog.md index 7d9bc70..864bb16 100644 --- a/Changelog.md +++ b/Changelog.md @@ -4,6 +4,7 @@ This file holds the changelog for Pepperminty Wiki. This is the master list of t ## v0.20-dev - Made `build.sh` build script more robust, especially when generating the documentation. - Improved search index update performance - especially when rebuilding the entire index through the master control panel + - The search index is no longer sorted, but this shouldn't affect lookup performance at all ## v0.19 diff --git a/modules/feature-search.php b/modules/feature-search.php index 76a36c0..38903db 100644 --- a/modules/feature-search.php +++ b/modules/feature-search.php @@ -722,24 +722,7 @@ class search // If the nterm isn't in the inverted index, then create a space for it if(!isset($invindex[$nterm])) $invindex[$nterm] = []; $invindex[$nterm][$pageid] = $newentry; - - // Sort the page entries for this word by frequency - /* - uasort($invindex[$nterm], function($a, $b) { - if($a["freq"] == $b["freq"]) return 0; - return ($a["freq"] < $b["freq"]) ? +1 : -1; - }); - */ } - - /* - // Sort the inverted index by rank - uasort($invindex, function($a, $b) { - $ac = count($a); $bc = count($b); - if($ac == $bc) return 0; - return ($ac < $bc) ? +1 : -1; - }); - */ } /**