Skip to content

Commit

Permalink
fix(infra): indexer missing data (#8578)
Browse files Browse the repository at this point in the history
  • Loading branch information
EYHN committed Oct 23, 2024
1 parent 90c0f67 commit 542fde6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>(
Expand Down
18 changes: 9 additions & 9 deletions packages/frontend/i18n/src/i18n-completenesses.json
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 542fde6

Please sign in to comment.