feat: introduce fuzzy search for native indexer (#14109)
This commit is contained in:
1 parent
b6dc68eddf
commit
e8693a3a25
24 files changed
+237
-537
No files matched your search
@@ -171,7 +171,7 @@ export interface NbStorePlugin {
|
||||
id: string;
|
||||
indexName: string;
|
||||
query: string;
|
||||
}) => Promise<{ id: string; score: number }[]>;
|
||||
}) => Promise<{ id: string; score: number; terms: Array<string> }[]>;
|
||||
ftsGetDocument: (options: {
|
||||
id: string;
|
||||
indexName: string;
|
||||
|
||||
@@ -369,7 +369,7 @@ export const NbStoreNativeDBApis: NativeDBApis = {
|
||||
id: string,
|
||||
indexName: string,
|
||||
query: string
|
||||
): Promise<{ id: string; score: number }[]> {
|
||||
): Promise<{ id: string; score: number; terms: Array<string> }[]> {
|
||||
return await NbStore.ftsSearch({
|
||||
id,
|
||||
indexName,
|
||||
|
||||
Reference in new issue
Block a user