mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 17:23:00 +00:00
Remove commented code
This commit is contained in:
parent
0a5ba3ff59
commit
ddc36bf48e
2 changed files with 1 additions and 17 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue