How and where I can set "doc_values": true

Hi Experts,

I read "" and got to know that we can set doc_value to true. Even a code has been mentioned in this link. Since I am new to ELK so my question is where I need to place this code or where I need to mention "doc_values": true. Do I need to mention it in a file or something if yes then what is the name of that file .

Please suggest


You can find some explanations and examples about doc values at

You set field data in the mapping of a field.

Using the code in the docs you can run that in Sense, or use curl, to send it to Elasticsearch.