There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(infra): indexer missing data (#8578)
EYHN542fde6c6839
diff --git a/packages/common/infra/src/sync/indexer/impl/indexeddb/data-struct.ts b/packages/common/infra/src/sync/indexer/impl/indexeddb/data-struct.tsindex 9fe55bc1ec..14bda288cf 100644--- a/packages/common/infra/src/sync/indexer/impl/indexeddb/data-struct.ts+++ b/packages/common/infra/src/sync/indexer/impl/indexeddb/data-struct.ts@@ -115,7 +115,7 @@ export class DataStruct {for (const [key, values] of document.fields) {const type = this.schema[key as string];if (!type) {- return;+ continue;}const typeInfo = typeof type === 'string' ? { type } : type;if (typeInfo.store !== false) {@@ -132,7 +132,7 @@ export class DataStruct {for (const [key, values] of document.fields) {const iidx = this.invertedIndex.get(key as string);if (!iidx) {- return;+ continue;}await iidx.insert(trx, nid, values);}diff --git a/packages/frontend/core/src/modules/docs-search/entities/docs-indexer.ts b/packages/frontend/core/src/modules/docs-search/entities/docs-indexer.tsindex 1c81110d5c..e1f5bbba2c 100644--- a/packages/frontend/core/src/modules/docs-search/entities/docs-indexer.ts+++ b/packages/frontend/core/src/modules/docs-search/entities/docs-indexer.ts@@ -36,7 +36,7 @@ export class DocsIndexer extends Entity {/*** increase this number to re-index all docs*/- static INDEXER_VERSION = 5;+ static INDEXER_VERSION = 6;private readonly jobQueue: JobQueue<IndexerJobPayload> =new IndexedDBJobQueue<IndexerJobPayload>(diff --git a/packages/frontend/i18n/src/i18n-completenesses.json b/packages/frontend/i18n/src/i18n-completenesses.jsonindex 0ff53acc0a..22f5bdf084 100644--- a/packages/frontend/i18n/src/i18n-completenesses.json+++ b/packages/frontend/i18n/src/i18n-completenesses.json@@ -1,22 +1,22 @@{- "ar": 86,+ "ar": 85,"ca": 6,- "da": 7,+ "da": 6,"de": 32,"en": 100,"es-AR": 15,- "es-CL": 18,+ "es-CL": 17,"es": 15,- "fr": 77,+ "fr": 75,"hi": 2,"it": 1,- "ja": 100,- "ko": 91,+ "ja": 99,+ "ko": 89,"pl": 0,- "pt-BR": 99,- "ru": 84,+ "pt-BR": 97,+ "ru": 83,"sv-SE": 5,"ur": 3,"zh-Hans": 99,- "zh-Hant": 99+ "zh-Hant": 97}\ No newline at end of file