2022-05-16 13:09:36 +00:00
|
|
|
import { syscall } from "./syscall";
|
|
|
|
|
|
|
|
export async function fullTextIndex(key: string, value: string) {
|
|
|
|
return syscall("fulltext.index", key, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function fullTextDelete(key: string) {
|
2022-09-12 12:50:37 +00:00
|
|
|
return syscall("fulltext.delete", key);
|
2022-05-16 13:09:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export async function fullTextSearch(phrase: string, limit: number = 100) {
|
|
|
|
return syscall("fulltext.search", phrase, limit);
|
|
|
|
}
|