I need to create a new datatype which should be used inside a dynamic template and also while indexing, the value stored against the new type should be processed based on my custom logic.
Should I create mapper plugin or ingest plugin or both?
I need to create a new datatype which should be used inside a dynamic template and also while indexing, the value stored against the new type should be processed based on my custom logic.
Should I create mapper plugin or ingest plugin or both?
If you want to modify the _source
document on the fly before it gets indexed, then definitely use an ingest plugin.
If you don't want to change the _source
field, then look at mappers.
But I'd recommend using ingest.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.