1
0

Initial search implementation

This commit is contained in:
Zef Hemel
2022-05-16 15:09:36 +02:00
parent 7d01f77318
commit 2cdd3df6c3
17 changed files with 14798 additions and 62 deletions
-1
View File
@@ -1 +0,0 @@
import {pullDataCommand} from ".//var/folders/s2/4nqrw2192hngtxg672qzc0nr0000gn/T/plugos-0.8739407042390945/file.js";export default pullDataCommand;
+6
View File
@@ -32,6 +32,10 @@ import sandboxSyscalls from "@plugos/plugos/syscalls/sandbox";
import globalModules from "../common/dist/global.plug.json";
import { safeRun } from "./util";
import {
ensureFTSTable,
fullTextSearchSyscalls,
} from "@plugos/plugos/syscalls/fulltext.knex_sqlite";
const safeFilename = /^[a-zA-Z0-9_\-\.]+$/;
@@ -86,6 +90,7 @@ export class ExpressServer {
this.system.registerSyscalls(
[],
pageIndexSyscalls(this.db),
fullTextSearchSyscalls(this.db, "fts"),
spaceSyscalls(this.space),
eventSyscalls(this.eventHook),
markdownSyscalls(buildMarkdown([])),
@@ -196,6 +201,7 @@ export class ExpressServer {
};
await ensurePageIndexTable(this.db);
await ensureFTSTable(this.db, "fts");
console.log("Setting up router");
let auth = new Authenticator(this.db);