1. 进入Dev Tools

2. 将下列内容粘贴过去,(对内容进行修改‘app_id’对应位置就是字段)

PUT /content_feature

{

  "settings": {

    "number_of_shards": "2",

    "number_of_replicas": "1"

  },

  "mappings": {

    "properties": {

        "app_id": {

          "type": "text",

          "fields": {

            "keyword": {

              "type": "keyword",

              "ignore_above": 256

            }

          }

        },

        "id": {

          "type": "text",

          "fields": {

            "keyword": {

              "type": "keyword",

              "ignore_above": 256

            }

          }

        },

        "content_info": {

          "type": "text",

          "fields": {

            "keyword": {

              "type": "keyword",

              "ignore_above": 256

            }

          }

        },

        "content": {

          "type": "text",

          "fields": {

            "keyword": {

              "type": "keyword",

              "ignore_above": 256

            }

          }

        },

        "feature": {

          "type": "text",

          "fields": {

            "keyword": {

              "type": "keyword",

              "ignore_above": 256

            }

          }

        },

        "uuid": {

          "type": "text",

          "fields": {

            "keyword": {

              "type": "keyword",

              "ignore_above": 256

            }

          }

        },

        "create_time": {

          "type": "date"

        }

      }

    }

}

 

相关文章:

  • 2022-01-10
  • 2022-02-20
  • 2022-12-23
  • 2021-12-29
  • 2021-08-24
  • 2021-09-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-08
  • 2022-01-20
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案