mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-26 05:32:59 +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:
parent
7088990027
commit
38badd3c1f
2 changed files with 8 additions and 3 deletions
|
@ -1,12 +1,17 @@
|
||||||
<?php
|
<?php
|
||||||
register_module([
|
register_module([
|
||||||
"name" => "Search",
|
"name" => "Search",
|
||||||
"version" => "0.8",
|
"version" => "0.9",
|
||||||
"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.",
|
||||||
|
"extra_data" => [
|
||||||
|
"StorageBox.php" => "https://gist.githubusercontent.com/sbrl/c3bfbbbb3d1419332e9ece1bac8bb71c/raw/c4c858831e63d24fcecb2e221375486735cf3109/StorageBox.php"
|
||||||
|
],
|
||||||
"id" => "feature-search",
|
"id" => "feature-search",
|
||||||
"code" => function() {
|
"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
|
* @api {get} ?action=index&page={pageName} Get an index of words for a given page
|
||||||
|
|
|
@ -3,7 +3,7 @@ register_module([
|
||||||
"name" => "Parsedown",
|
"name" => "Parsedown",
|
||||||
"version" => "0.10",
|
"version" => "0.10",
|
||||||
"author" => "Emanuil Rusev & Starbeamrainbowlabs",
|
"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" => [
|
"extra_data" => [
|
||||||
/******** Parsedown versions ********
|
/******** Parsedown versions ********
|
||||||
* Parsedown Core: 1.8.0-beta-5 *
|
* Parsedown Core: 1.8.0-beta-5 *
|
||||||
|
|
Loading…
Reference in a new issue