mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 17:23:00 +00:00
Bugfix: Correct search query performance metrics
This commit is contained in:
parent
ddc36bf48e
commit
127270ff89
3 changed files with 9 additions and 2 deletions
|
@ -1,11 +1,18 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
This file holds the changelog for Pepperminty Wiki. This is the master list of things that have changed (second only to the commit history!) - though the information for any particular release can also be found in the description of it's page for every release made on GitHub too.
|
This file holds the changelog for Pepperminty Wiki. This is the master list of things that have changed (second only to the commit history!) - though the information for any particular release can also be found in the description of it's page for every release made on GitHub too.
|
||||||
|
|
||||||
|
|
||||||
## v0.20-dev
|
## v0.20-dev
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Fixed a bug in the search query performance metrics
|
||||||
|
|
||||||
|
### Changed
|
||||||
- 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
|
- The search index is no longer sorted, but this shouldn't affect lookup performance at all
|
||||||
|
|
||||||
|
|
||||||
## v0.19
|
## v0.19
|
||||||
|
|
||||||
_(No changes have been made since the last beta release.)_
|
_(No changes have been made since the last beta release.)_
|
||||||
|
|
|
@ -135,7 +135,7 @@
|
||||||
"version": "0.8",
|
"version": "0.8",
|
||||||
"author": "Starbeamrainbowlabs",
|
"author": "Starbeamrainbowlabs",
|
||||||
"description": "Adds proper search functionality to Pepperminty Wiki using an inverted index to provide a full text search engine. If pages don't show up, then you might have hit a stop word. If not, try requesting the `invindex-rebuild` action to rebuild the inverted index from scratch.",
|
"description": "Adds proper search functionality to Pepperminty Wiki using an inverted index to provide a full text search engine. If pages don't show up, then you might have hit a stop word. If not, try requesting the `invindex-rebuild` action to rebuild the inverted index from scratch.",
|
||||||
"lastupdate": 1565906705,
|
"lastupdate": 1565909052,
|
||||||
"optional": false,
|
"optional": false,
|
||||||
"extra_data": []
|
"extra_data": []
|
||||||
},
|
},
|
||||||
|
|
|
@ -135,7 +135,7 @@ register_module([
|
||||||
$invindex = search::load_invindex($paths->searchindex);
|
$invindex = search::load_invindex($paths->searchindex);
|
||||||
$env->perfdata->invindex_decode_time = round((microtime(true) - $time_start)*1000, 3);
|
$env->perfdata->invindex_decode_time = round((microtime(true) - $time_start)*1000, 3);
|
||||||
|
|
||||||
$start = microtime(true);
|
$time_start = microtime(true);
|
||||||
$results = search::query_invindex($_GET["query"], $invindex);
|
$results = search::query_invindex($_GET["query"], $invindex);
|
||||||
$resultCount = count($results);
|
$resultCount = count($results);
|
||||||
$env->perfdata->invindex_query_time = round((microtime(true) - $time_start)*1000, 3);
|
$env->perfdata->invindex_query_time = round((microtime(true) - $time_start)*1000, 3);
|
||||||
|
|
Loading…
Reference in a new issue