#141 - added refreshIndex() to the public api

This commit is contained in:
Simon Cambier
2023-02-11 17:27:03 +01:00
parent c1d82dab54
commit 088c3b77ac

View File

@@ -2,6 +2,7 @@ import type { ResultNote } from '../globals'
import { Query } from '../search/query' import { Query } from '../search/query'
import { searchEngine } from '../search/omnisearch' import { searchEngine } from '../search/omnisearch'
import { makeExcerpt } from './utils' import { makeExcerpt } from './utils'
import { refreshIndex } from '../notes-index'
type ResultNoteApi = { type ResultNoteApi = {
score: number score: number
@@ -69,4 +70,4 @@ export function notifyOnIndexed(): void {
onIndexedCallbacks.forEach(cb => cb()) onIndexedCallbacks.forEach(cb => cb())
} }
export default { search, registerOnIndexed, unregisterOnIndexed } export default { search, registerOnIndexed, unregisterOnIndexed, refreshIndex }