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":[

]

}

}

}

相关推荐
伍哥的传说3 分钟前
Vite Plugin PWA – 零配置构建现代渐进式Web应用
开发语言·前端·javascript·web app·pwa·service worker·workbox
a5876913 分钟前
Elasticsearch核心概念与Java实战:从入门到精通
java·es
小莞尔29 分钟前
【51单片机】【protues仿真】 基于51单片机八路抢答器系统
c语言·开发语言·单片机·嵌入式硬件·51单片机
我是菜鸟0713号1 小时前
Qt 中 OPC UA 通讯实战
开发语言·qt
JCBP_1 小时前
QT(4)
开发语言·汇编·c++·qt·算法
Brookty1 小时前
【JavaEE】线程安全-内存可见性、指令全排序
java·开发语言·后端·java-ee·线程安全·内存可见性·指令重排序
獭.獭.1 小时前
Linux -- 信号【上】
linux·运维·服务器
hashiqimiya1 小时前
centos配置环境变量jdk
linux·运维·centos
百锦再1 小时前
[特殊字符] Python在CentOS系统执行深度指南
开发语言·python·plotly·django·centos·virtualenv·pygame
hashiqimiya1 小时前
权限更改centos中系统文件无法创建文件夹,使用命令让普通用户具备操作文件夹
linux