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}",