Renamed "Omnisearch" into "SearchEngine"

This commit is contained in:
Simon Cambier
2024-05-25 23:06:19 +02:00
parent efdfbbcf8a
commit 1e2df5e82a
6 changed files with 9 additions and 11 deletions

View File

@@ -17,7 +17,7 @@ export class NotesIndexer {
public async refreshIndex(): Promise<void> {
const paths = [...this.notesToReindex].map(n => n.path)
if (paths.length) {
const searchEngine = this.plugin.omnisearch
const searchEngine = this.plugin.searchEngine
searchEngine.removeFromPaths(paths)
await searchEngine.addFromPaths(paths)
this.notesToReindex.clear()