Full text search improvements
This commit is contained in:
@@ -8,6 +8,17 @@ export function fullTextDelete(key: string) {
|
||||
return syscall("fulltext.delete", key);
|
||||
}
|
||||
|
||||
export function fullTextSearch(phrase: string, limit = 100) {
|
||||
return syscall("fulltext.search", phrase, limit);
|
||||
export type FullTextSearchOptions = {
|
||||
limit?: number;
|
||||
highlightPrefix?: string;
|
||||
highlightPostfix?: string;
|
||||
highlightEllipsis?: string;
|
||||
summaryMaxLength?: number;
|
||||
};
|
||||
|
||||
export function fullTextSearch(
|
||||
phrase: string,
|
||||
options: FullTextSearchOptions = {},
|
||||
) {
|
||||
return syscall("fulltext.search", phrase, options);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user