zoukankan      html  css  js  c++  java
  • ES数据库创建索引

    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"

            }

          }

        }

    }

  • 相关阅读:
    js中实现继承的几种方式
    js中prototype,__proto__,constructor之间的关系
    圣杯布局
    BFC详解
    Altium制作DC002的PCB封装和3D模型
    直流供电电路中,关于电源并联二极管、电容作用的思考与总结
    AltiumDesigner17快捷键
    AltiumDesigner17学习指南
    AltiumDesigner元器件搜索中英文对照
    智慧树自动刷课脚本
  • 原文地址:https://www.cnblogs.com/niulang/p/14929829.html
Copyright © 2011-2022 走看看