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"

            }

            }

          }

        }

      }

    }

}

```

上一篇 下一篇

猜你喜欢

热点阅读