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"

            }

          }

        }

    }

  • 相关阅读:
    [BZOJ 2186][Sdoi2008]沙拉公主的困惑(欧拉函数)
    [BZOJ1271][WC2008]秦腾与教学评估(巧妙的二分)
    [BZOJ2879][Noi2012]美食节(最小费用最大流动态加边)
    [BZOJ1070][SCOI2007]修车(最小费用最大流)
    [BZOJ1211][HNOI2004]树的计数(Prufer序列)
    [BZOJ1406][AHOI2007]密码箱(数论)
    1、体验
    sublime 安装插件
    <a>标签中的href="javascript:;"就是去掉a标签的默认行为
    html 中的media属性
  • 原文地址:https://www.cnblogs.com/niulang/p/14929829.html
Copyright © 2011-2022 走看看