es操作记录

32 阅读1分钟

ES 操作:

参考:www.cnblogs.com/xfeiyun/p/1…

ES管理端:

查询es Mapping

GET 请求 参数:flow_method_manage_alias/_mapping

创建索引

PUT 请求 : flow_interface_manage_240620/_mapping

参数:

添加mapping

{
  "properties": {
    "deptName": {
      "analyzer": "ik_max_word",
      "type": "text"
    },
    "visibility": {
      "type": "long"
    },
    "serviceCode": {
      "analyzer": "ik_max_word",
      "type": "text"
    },
    "appName": {
      "analyzer": "ik_max_word",
      "type": "text"
    },
    "appCode": {
      "analyzer": "ik_max_word",
      "type": "text"
    },
    "type": {
      "type": "long"
    },
    "appId": {
      "type": "long"
    },
    "name": {
      "analyzer": "ik_max_word",
      "type": "text"
    },
    "adminCode": {
      "type": "text",
      "fields": {
        "keyword": {
          "ignore_above": 256,
          "type": "keyword"
        }
      }
    },
    "_class": {
      "type": "text",
      "fields": {
        "keyword": {
          "ignore_above": 256,
          "type": "keyword"
        }
      }
    },
    "id": {
      "type": "keyword"
    },
    "interfaceId": {
      "type": "long"
    },
    "cloudFileTags": {
      "analyzer": "ik_max_word",
      "type": "text"
    },
    "erps": {
      "analyzer": "whitespace",
      "type": "text"
    }
  }
}