Field exists check in enrich ingest pipeline

Hi I am using enricher in ingest pipeline to enrch the data for incoming documents.

In few incoming documents, the matching field is not exist and throwing an error while inserting the document. How to check the condition in pipeline the field is exists or not.
below is the pipeline script.
Res name is the field have the source index and created the enrich policy, it is working fine when the incoming document is having the Res name field.

"description" : "Enriching user details to messages",
"processors" : [
"enrich" : {
"policy_name": "res-policy",
"field" : "{{Res name}}",
"target_field": "Res",
"max_matches": "1"

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.