This commit is contained in:
Simon Cambier
2022-12-08 21:09:18 +01:00
parent 67d9a807c4
commit 98e343e33e
7 changed files with 196 additions and 184 deletions

View File

@@ -5,13 +5,7 @@ import type {
ResultNote,
SearchMatch,
} from '../globals'
import {
chsRegex,
chsSegmenter,
indexingStep,
IndexingStepType,
SPACE_OR_PUNCTUATION,
} from '../globals'
import { chsRegex, chsSegmenter, SPACE_OR_PUNCTUATION } from '../globals'
import { settings } from '../settings'
import {
chunkArray,
@@ -81,7 +75,6 @@ export class Omnisearch {
toAdd: DocumentRef[]
toRemove: DocumentRef[]
} {
const indexedArr = [...this.indexedDocuments]
const docsMap = new Map(docs.map(d => [d.path, d.mtime]))
const toAdd = docs.filter(