1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-26 05:32:59 +00:00

Remove commented code

This commit is contained in:
Starbeamrainbowlabs 2019-08-15 23:17:33 +01:00
parent 0a5ba3ff59
commit ddc36bf48e
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 1 additions and 17 deletions

View file

@ -4,6 +4,7 @@ This file holds the changelog for Pepperminty Wiki. This is the master list of t
## v0.20-dev ## v0.20-dev
- Made `build.sh` build script more robust, especially when generating the documentation. - 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 - 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 ## v0.19

View file

@ -722,24 +722,7 @@ class search
// If the nterm isn't in the inverted index, then create a space for it // If the nterm isn't in the inverted index, then create a space for it
if(!isset($invindex[$nterm])) $invindex[$nterm] = []; if(!isset($invindex[$nterm])) $invindex[$nterm] = [];
$invindex[$nterm][$pageid] = $newentry; $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;
});
*/
} }
/** /**