Choosing between mapper or ingest plugin

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.