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
+13
View File
@@ -0,0 +1,13 @@
import { syscall } from "./syscall";
export async function fullTextIndex(key: string, value: string) {
return syscall("fulltext.index", key, value);
}
export async function fullTextDelete(key: string) {
return syscall("fulltext.index", key);
}
export async function fullTextSearch(phrase: string, limit: number = 100) {
return syscall("fulltext.search", phrase, limit);
}