I'm trying to use reindex with help of ingest pipeline to enrich my data. I have problem with enrich processor.
I have created this policy
PUT /_enrich/policy/ingest-policy
{
"match": {
"indices": "ingest_two",
"match_field": "matchingId",
"enrich_fields": ["textValue"]
}
}
Which is used in this processor:
{
"enrich": {
"field": "_id",
"policy_name": "ingest-policy",
"target_field": "systemMetadata.com:vjoon:System:searchContentHTML",
"override": true
}
}
As you can see I'm comparing _id
with matchingId
field. It works fine, but matchingId
is added to the systemMetadata.com:vjoon:System:searchContentHTML
, which I do not want to do. Can I change this behaviour, co only textValue
is added and not the matchingId
?