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"
            }
          }
        }
      }
    }
    

      

  • 相关阅读:
    barcode制作条形码及破解
    软件敏捷架构师
    软件需求分析三步走
    GDI+显示GIF动画
    CSpinButtonCtrl的弱智问题
    [C++] STL里面的map
    [C#] 再议Exception
    [C++] unsigned是麻烦制造者
    用GDI+转BMP为WMF、EXIF、EMF格式
    [C++] 编译时的warning
  • 原文地址:https://www.cnblogs.com/feng-jjy/p/11963631.html
Copyright © 2011-2022 走看看