UBERF-5289: fix getting parent doc for some cases for indexing (#4549)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
Vyacheslav Tumanov 2024-02-07 13:00:49 +05:00 committed by GitHub
parent 44a2af4888
commit d98fb41ac3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ export class FullTextPushStage implements FullTextPipelineStage {
{},
async (ctx) =>
await this.dbStorage.findAll(ctx, core.class.DocIndexState, {
_id: doc.space as any as Ref<DocIndexState>
_id: (doc.attributes[docKey('space', { _class: doc.objectClass })] ?? doc.space) as Ref<DocIndexState>
})
)

View File

@ -107,4 +107,4 @@ export const fieldStateId = 'fld-v11'
/**
* @public
*/
export const fullTextPushStageId = 'fts-v9bc'
export const fullTextPushStageId = 'fts-v9_2'