Is it possible to mask field name in mappings?

Hello!

I'd like to set all fields type as keyword except some custom fields.

"properties":  {
  "field1": { "type" : "text" },
  "*": { "type" : "keyword" }
}

doesn't work ant the fields mapping dynamically.

Is there any way to solve the task?

Have a look at Dynamic templates | Elasticsearch Guide [7.15] | Elastic

1 Like