fix(infra): indexer missing data (#8578)
This commit is contained in:
@@ -115,7 +115,7 @@ export class DataStruct {
|
|||||||
for (const [key, values] of document.fields) {
|
for (const [key, values] of document.fields) {
|
||||||
const type = this.schema[key as string];
|
const type = this.schema[key as string];
|
||||||
if (!type) {
|
if (!type) {
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
const typeInfo = typeof type === 'string' ? { type } : type;
|
const typeInfo = typeof type === 'string' ? { type } : type;
|
||||||
if (typeInfo.store !== false) {
|
if (typeInfo.store !== false) {
|
||||||
@@ -132,7 +132,7 @@ export class DataStruct {
|
|||||||
for (const [key, values] of document.fields) {
|
for (const [key, values] of document.fields) {
|
||||||
const iidx = this.invertedIndex.get(key as string);
|
const iidx = this.invertedIndex.get(key as string);
|
||||||
if (!iidx) {
|
if (!iidx) {
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
await iidx.insert(trx, nid, values);
|
await iidx.insert(trx, nid, values);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ export class DocsIndexer extends Entity {
|
|||||||
/**
|
/**
|
||||||
* increase this number to re-index all docs
|
* increase this number to re-index all docs
|
||||||
*/
|
*/
|
||||||
static INDEXER_VERSION = 5;
|
static INDEXER_VERSION = 6;
|
||||||
|
|
||||||
private readonly jobQueue: JobQueue<IndexerJobPayload> =
|
private readonly jobQueue: JobQueue<IndexerJobPayload> =
|
||||||
new IndexedDBJobQueue<IndexerJobPayload>(
|
new IndexedDBJobQueue<IndexerJobPayload>(
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
{
|
{
|
||||||
"ar": 86,
|
"ar": 85,
|
||||||
"ca": 6,
|
"ca": 6,
|
||||||
"da": 7,
|
"da": 6,
|
||||||
"de": 32,
|
"de": 32,
|
||||||
"en": 100,
|
"en": 100,
|
||||||
"es-AR": 15,
|
"es-AR": 15,
|
||||||
"es-CL": 18,
|
"es-CL": 17,
|
||||||
"es": 15,
|
"es": 15,
|
||||||
"fr": 77,
|
"fr": 75,
|
||||||
"hi": 2,
|
"hi": 2,
|
||||||
"it": 1,
|
"it": 1,
|
||||||
"ja": 100,
|
"ja": 99,
|
||||||
"ko": 91,
|
"ko": 89,
|
||||||
"pl": 0,
|
"pl": 0,
|
||||||
"pt-BR": 99,
|
"pt-BR": 97,
|
||||||
"ru": 84,
|
"ru": 83,
|
||||||
"sv-SE": 5,
|
"sv-SE": 5,
|
||||||
"ur": 3,
|
"ur": 3,
|
||||||
"zh-Hans": 99,
|
"zh-Hans": 99,
|
||||||
"zh-Hant": 99
|
"zh-Hant": 97
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user