Elasticsearch 7.0 Cookbook(Fourth Edition)
上QQ阅读APP看书,第一时间看更新

How to do it...

We can extend the preceding order example by adding some of the special fields, for example:

PUT test/_mapping
{
"_source": { "store": true
},
"_routing": { "required": true
},
"_index": {
"enabled": true
}, "properties": {
... truncated ....
}
}