How to modify ES to create field default values?

Hi Everyone.

I want to know how to modify the default value of the ES creation field?
For example:
I'm going to insert a piece of data.
Add the dizhi field, the default type is text, the participle.

I want to add the dizhi field, the default type is keyword, no participle
I hope to get some solutions. Thank you very much.
1

use mapping to update is.

Can the default part of the keyword type be inserted by default by configuration modification? How do you do it?

Change your mapping.

....
"dizhi" : {
  "type" : "keyword"
},
....

Note that this only can be set when creating a new index. You cannot change an existing index.
If you need to change existing data, you will have to reindex.

OK thank you