设置ES字段的默认类型:
```
PUT _template/xt
{
"order": 11,
"index_patterns": [
"xt-*"
],
"mappings": {
"_default_": {
"properties": {
"firstLevelData": {
"properties": {
"location2": {
"type": "geo_point"
}
}
}
}
}
}
}
```
设置ES字段的默认类型:
```
PUT _template/xt
{
"order": 11,
"index_patterns": [
"xt-*"
],
"mappings": {
"_default_": {
"properties": {
"firstLevelData": {
"properties": {
"location2": {
"type": "geo_point"
}
}
}
}
}
}
}
```
本文标题:ES 常见操作
本文链接:https://www.haomeiwen.com/subject/rvmgqhtx.html
网友评论