ES 常见操作
2020-02-24 本文已影响0人
a小鱼1
设置ES字段的默认类型:
```
PUT _template/xt
{
"order": 11,
"index_patterns": [
"xt-*"
],
"mappings": {
"_default_": {
"properties": {
"firstLevelData": {
"properties": {
"location2": {
"type": "geo_point"
}
}
}
}
}
}
}
```