fix(core): disable blocksuite indexer (#7813)

This commit is contained in:
EYHN
2024-08-09 08:24:44 +00:00
parent 3ad5170b71
commit d2b0ee40a8
7 changed files with 23 additions and 2 deletions

View File

@@ -34,6 +34,8 @@ export class Workspace extends Entity {
},
idGenerator: () => nanoid(),
schema: globalBlockSuiteSchema,
disableBacklinkIndex: true,
disableSearchIndex: true,
});
}
return this._docCollection;

View File

@@ -61,6 +61,8 @@ export class TestingWorkspaceLocalProvider
blobSources: {
main: blobStorage,
},
disableBacklinkIndex: true,
disableSearchIndex: true,
});
// apply initial state
@@ -95,6 +97,8 @@ export class TestingWorkspaceLocalProvider
const bs = new DocCollection({
id,
schema: globalBlockSuiteSchema,
disableBacklinkIndex: true,
disableSearchIndex: true,
});
applyUpdate(bs.doc, data);