From 542fde6c68392ca4634128d4916f0d42ed879d15 Mon Sep 17 00:00:00 2001 From: EYHN Date: Wed, 23 Oct 2024 01:44:24 +0000 Subject: [PATCH] fix(infra): indexer missing data (#8578) --- .../sync/indexer/impl/indexeddb/data-struct.ts | 4 ++-- .../docs-search/entities/docs-indexer.ts | 2 +- .../frontend/i18n/src/i18n-completenesses.json | 18 +++++++++--------- 3 files changed, 12 insertions(+), 12 deletions(-) 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.ts index 9fe55bc1ec1c8..14bda288cf187 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.ts index 1c81110d5c303..e1f5bbba2c331 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 = new IndexedDBJobQueue( diff --git a/packages/frontend/i18n/src/i18n-completenesses.json b/packages/frontend/i18n/src/i18n-completenesses.json index 0ff53acc0a1a9..22f5bdf084ade 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