zoukankan      html  css  js  c++  java
  • 大觅网 ElasticSearch index创建代码

    大觅网视频提供素材没有 ES 索引初始化代码 个人自己敲了个 希望能给学习的人提供方便

    PUT /dm
    {
      "settings": {
        "number_of_replicas": 1,
        "number_of_shards": 5
      },
      "mappings": {
        "item":{
          "properties": {
            "abstractMessage":{
              "type": "text",
              "fields": {
                "keyword":{
                  "type": "keyword",
                  "ignore_above": 256
                }
              }
            },
            "address":{
              "type": "text",
              "fields": {
                "keyword":{
                  "type": "keyword",
                  "ignore_above": 256
                }
              }
            },
            "areaId":{
              "type": "long"
            },
            "areaName":{
              "type": "text",
              "fields": {
                "keyword":{
                  "type": "keyword",
                  "ignore_above": 256
                }
              }
            },
            "commentCount":{
              "type": "long"
            },
            "createdTime":{
              "type": "text",
              "fields": {
                "keyword":{
                  "type": "keyword",
                  "ignore_above": 256
                }
              }
            },
            "createdTimeLong":{
              "type": "long"
            },
            "endTime":{
              "type": "text",
              "fields": {
                "keyword":{
                  "type": "keyword",
                  "ignore_above": 256
                }
              }
            },
            "endTimeLong":{
              "type": "long"
            },
            "esId":{
              "type": "text",
              "fields": {
                "keyword":{
                  "type": "keyword",
                  "ignore_above": 256
                }
              }
            },
            "id":{
              "type": "long"
            },
            "imgUrl":{
              "type": "text",
              "fields": {
                "keyword":{
                  "type": "keyword",
                  "ignore_above": 256
                }
              }
            },
            "itemName":{
              "type": "text",
              "fields": {
                "keyword":{
                  "type": "keyword",
                  "ignore_above": 256
                }
              }
            },
            "itemTypeId1":{
              "type": "long"
            },
            "itemTypeId2":{
              "type": "long"
            },
            "latitude":{
              "type": "text",
              "fields": {
                "keyword":{
                  "type": "keyword",
                  "ignore_above": 256
                }
              }
            },
            "longitude":{
              "type": "text",
              "fields": {
                "keyword":{
                  "type": "keyword",
                  "ignore_above": 256
                }
              }
            },
            "maxPrice":{
              "type": "float"
            },
            "minPrice":{
              "type": "float"
            },
            "setting":{
              "properties": {
                "indexName":{
                  "type": "text",
                  "fields": {
                    "keyword":{
                      "type": "keyword",
                      "ignore_above": 256
                    }
                  }
                },
                "typeName":{
                  "type": "text",
                  "fields": {
                    "keyword":{
                      "type": "keyword",
                      "ignore_above": 256
                    }
                  }
                }
              }
            },
            "startTime":{
              "type": "text",
              "fields": {
                "keyword":{
                  "type": "keyword",
                  "ignore_above": 256
                }
              }
            },
            "startTimeLong":{
              "type": "long"
            }
          }
        }
      }
    }
    

      

  • 相关阅读:
    线程安全的单例模式
    rsync 不真正同步,只显示更新的内容
    Python_元组、字典内建方法详解
    Python_元组、字典内建方法详解
    数组求差集
    svn数据库自动发布程序
    perl 比较目录
    被驱动表 拼接列无法走索引
    FILTER NESTLOOP 中驱动表问题
    Linux_SystemLogManager
  • 原文地址:https://www.cnblogs.com/feng-jjy/p/11963631.html
Copyright © 2011-2022 走看看