elasticSearch mapping设计

PUT /work_order

{

"mappings": {

"properties": {

"guid": {

"type": "keyword"

},

"work_order_id": {

"type": "text"

},

"work_order_name": {

"type": "text",

"analyzer":"ik_max_word",

"search_analyzer": "ik_smart",

"fields" : {

"keyword" : {

"type" : "keyword",

"ignore_above" : 256

}

}

},

"content": {

"type": "text",

"analyzer":"ik_max_word",

"search_analyzer": "ik_smart"

},

"description": {

"type": "text",

"analyzer":"ik_max_word",

"search_analyzer": "ik_smart"

},

"work_type": {

"type": "keyword"

},

"work_type_name": {

"type": "text",

"analyzer":"ik_max_word",

"search_analyzer": "ik_smart"

},

"read_status": {

"type": "boolean"

},

"work_order_state": {

"type": "keyword"

},

"sys_id": {

"type": "keyword"

},

"proc_ins_id": {

"type": "keyword"

},

"professional_category": {

"type": "keyword"

},

"sponsor_id": {

"type": "keyword"

},

"sponsor_name": {

"type": "text",

"analyzer":"ik_max_word",

"search_analyzer": "ik_smart"

},

"launch_time": {

"type": "date"

},

"end_time": {

"type": "date"

},

"create_by": {

"type": "text"

},

"create_time": {

"type": "date"

},

"update_time": {

"type": "date",

"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"

}

,

"collectors":[

],

"pending_persons":[

],

"work_links":[

],

"work_comments":[

]

}

}

}

相关推荐
阳光明媚sunny几秒前
结构型设计模式
java·设计模式
码luffyliu2 分钟前
Java:高频面试知识分享1
java·八股文
小信丶12 分钟前
Spring Boot 简单接口角色授权检查实现
java·spring boot·后端
IT乐手14 分钟前
java 或 安卓项目中耗时统计工具类
android·java
草字26 分钟前
uniapp 如果进入页面输入框自动聚焦,此时快速返回页面或者跳转到下一个页面,输入法顶上来的页面出现半屏的黑屏问题。
java·前端·uni-app
SiYuanFeng33 分钟前
【问题未解决-寻求帮助】VS Code 中使用 Conda 环境,运行 Python 后 PowerShell 终端输出内容立即消失
开发语言·python·conda
博主逸尘33 分钟前
uniApp实战六:Echart图表集成
java·uni-app·php
我是ed.1 小时前
cocos Js 使用 webview 通过 postMessage 进行通信
开发语言·javascript·ecmascript
维尔切1 小时前
Linux中ssh远程登录原理与配置
android·linux·ssh
jc06201 小时前
Linux c网络专栏第四章io_uring
linux·运维·服务器