From 088c3b77ac4d97885cdb2906d48e1d9363900174 Mon Sep 17 00:00:00 2001 From: Simon Cambier Date: Sat, 11 Feb 2023 17:27:03 +0100 Subject: [PATCH] #141 - added `refreshIndex()` to the public api --- src/tools/api.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/api.ts b/src/tools/api.ts index db5cc2c..440f6e8 100644 --- a/src/tools/api.ts +++ b/src/tools/api.ts @@ -2,6 +2,7 @@ import type { ResultNote } from '../globals' import { Query } from '../search/query' import { searchEngine } from '../search/omnisearch' import { makeExcerpt } from './utils' +import { refreshIndex } from '../notes-index' type ResultNoteApi = { score: number @@ -69,4 +70,4 @@ export function notifyOnIndexed(): void { onIndexedCallbacks.forEach(cb => cb()) } -export default { search, registerOnIndexed, unregisterOnIndexed } +export default { search, registerOnIndexed, unregisterOnIndexed, refreshIndex }