From 4606fdf09669918e5f57e4d773912ab77a2558ba Mon Sep 17 00:00:00 2001 From: Marcus Aspin Date: Thu, 30 Jan 2025 15:50:58 +0000 Subject: [PATCH] PI-2526 Handle null outcome and description (#4606) --- .../contact/index/ingest-pipeline.tpl.json | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/projects/person-search-index-from-delius/container/pipelines/contact/index/ingest-pipeline.tpl.json b/projects/person-search-index-from-delius/container/pipelines/contact/index/ingest-pipeline.tpl.json index 13a1fb1dd..782196fb4 100644 --- a/projects/person-search-index-from-delius/container/pipelines/contact/index/ingest-pipeline.tpl.json +++ b/projects/person-search-index-from-delius/container/pipelines/contact/index/ingest-pipeline.tpl.json @@ -20,12 +20,24 @@ "field": "textChunks", "value": [ "{{{date}}} {{{startTime}}}", - "{{{typeDescription}}} {{{typeShortDescription}}}", - "{{{outcomeDescription}}}", - "{{{description}}}" + "{{{typeDescription}}} {{{typeShortDescription}}}" ] } }, + { + "append": { + "field": "textChunks", + "value": ["{{{description}}}"], + "if": "ctx.description != null && ctx.description != \"\"" + } + }, + { + "append": { + "field": "textChunks", + "value": ["{{{outcomeDescription}}}"], + "if": "ctx.outcomeDescription != null && ctx.outcomeDescription != \"\"" + } + }, { "text_embedding": { "model_id": "${model_id}",