Automatically making text fields aggregatable

Hi, when we are logging our fields for many things come in as 'Text'. We use the bulk import and ndjson. We want them to be 'Keyword's so they are aggregatable. Is there an automatic way to do this. Currently we pull down the index and change everything manually.

How can we have this done automatically.

you want to use a dynamic template / custom mapping for that:

https://www.elastic.co/guide/en/elasticsearch/reference/5.6/dynamic-templates.html

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