1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-12-22 13:45:02 +00:00

[search] Add StorageBox.php as an extra data file

It's time to refactor the search system to use an SQLite-backed 
key-value data store. It's just a shame that something designed for this 
like LevelDB / RocksDB doesn't have a PHP package that we can use :-/

We can always switch later, I suppose.
This commit is contained in:
Starbeamrainbowlabs 2019-08-17 20:47:51 +01:00
parent 7088990027
commit 38badd3c1f
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 8 additions and 3 deletions

View file

@ -1,12 +1,17 @@
<?php
register_module([
"name" => "Search",
"version" => "0.8",
"version" => "0.9",
"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.",
"extra_data" => [
"StorageBox.php" => "https://gist.githubusercontent.com/sbrl/c3bfbbbb3d1419332e9ece1bac8bb71c/raw/c4c858831e63d24fcecb2e221375486735cf3109/StorageBox.php"
],
"id" => "feature-search",
"code" => function() {
global $settings;
global $settings, $paths;
require_once("$paths->extra_data_directory/feature-search/StorageBox.php");
/**
* @api {get} ?action=index&page={pageName} Get an index of words for a given page

View file

@ -3,7 +3,7 @@ register_module([
"name" => "Parsedown",
"version" => "0.10",
"author" => "Emanuil Rusev & Starbeamrainbowlabs",
"description" => "An upgraded (now default!) parser based on Emanuil Rusev's Parsedown Extra PHP library (https://github.com/erusev/parsedown-extra), which is licensed MIT. Please be careful, as this module adds some weight to your installation, and also *requires* write access to the disk on first load.",
"description" => "An upgraded (now default!) parser based on Emanuil Rusev's Parsedown Extra PHP library (https://github.com/erusev/parsedown-extra), which is licensed MIT. Please be careful, as this module adds some weight to your installation.",
"extra_data" => [
/******** Parsedown versions ********
* Parsedown Core: 1.8.0-beta-5 *