user13674325
user13674325

Reputation: 389

How to set default mapping to "keyword" for dynamically added properties in Elasticsearch

In our application we add new documents which can have new unknown properties.

Is it possible to set default mapping to "keyword" for dynamically added new properties in Elasticsearch?

Upvotes: 2

Views: 1529

Answers (1)

Julien
Julien

Reputation: 134

Dynamic template doc has an example for type string. Also in case you don't already use index templates read the relevant doc as the dynamic template can be specify with CREATE INDEX API but more commonly in the index template

Upvotes: 0

Related Questions