fix(infra): indexer missing data (#8578)

This commit is contained in:
EYHN
2024-10-23 01:44:24 +00:00
parent 90c0f67101
commit 542fde6c68
3 changed files with 12 additions and 12 deletions
@@ -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);
}
@@ -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>(
@@ -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
}