mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-21 20:16:26 +08:00
fix(core): disable blocksuite indexer (#7813)
This commit is contained in:
@@ -213,7 +213,12 @@ export class AISlidesRenderer extends WithDisposable(LitElement) {
|
||||
super.connectedCallback();
|
||||
|
||||
const schema = new Schema().register(AffineSchemas);
|
||||
const collection = new DocCollection({ schema, id: 'SLIDES_PREVIEW' });
|
||||
const collection = new DocCollection({
|
||||
schema,
|
||||
id: 'SLIDES_PREVIEW',
|
||||
disableBacklinkIndex: true,
|
||||
disableSearchIndex: true,
|
||||
});
|
||||
collection.meta.initialize();
|
||||
collection.start();
|
||||
const doc = collection.createDoc();
|
||||
|
||||
@@ -187,7 +187,11 @@ export async function replaceFromMarkdown(
|
||||
export async function markDownToDoc(host: EditorHost, answer: string) {
|
||||
const schema = host.std.doc.collection.schema;
|
||||
// Should not create a new doc in the original collection
|
||||
const collection = new DocCollection({ schema });
|
||||
const collection = new DocCollection({
|
||||
schema,
|
||||
disableBacklinkIndex: true,
|
||||
disableSearchIndex: true,
|
||||
});
|
||||
collection.meta.initialize();
|
||||
const job = new Job({
|
||||
collection,
|
||||
|
||||
Reference in New Issue
Block a user