I have an Apache Beam streaming job which reads data from Kafka and writes to ElasticSearch using ElasticSearchIO.
The issue I'm having is that messages in Kafka already have key
field, and using ElasticSearchIO.Write.withIdFn()
I'm mapping this field to document _id
field in ElasticSearch.
Having a big volume of data I don't want the key
field to be also written to ElasticSearch as part of _source
.
Is there an option/workaround that would allow doing that?