I am using enrich processor with ingest pipeline. The enrichment works when I simulate the pipeline but fails when ingesting a doc.
How can I debug what is going wrong? Verified that the Pipeline is indeed been invoked as the failure condition is set.
Enrich policy definition :
PUT /_enrich/policy/my-enrich_policy
{
"match": {
"indices": "master-index",
"match_field": "customer_prefix",
"enrich_fields": ["country", "geo"]
}
}
PUT /_enrich/policy/my-enrich_policy/_execute
Pipeline definition:
PUT /_ingest/pipeline/enrich_pipeline
{
"description": "Enrich country ",
"processors": [
{
"lowercase": {
"field": "customer_prefix"
}
},
{
"enrich": {
"policy_name": "my-enrich_policy",
"field": "customer_prefix",
"target_field": "enriched",
"on_failure": [
{
"set": {
"field": "enriched",
"value": "false"
}
}
]
}
}
]
}