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

]

}

}

}

相关推荐
Johnstons几秒前
如何精确模拟网络丢包进行测试?实测指南
开发语言·网络·php·网络测试·网络损伤·弱网模拟
枕星而眠1 分钟前
Linux IO多路复用:select、poll、epoll 核心原理与进阶实战
linux·运维·服务器·c++·后端
csdn_aspnet2 分钟前
Python 霍尔分区算法(Hoare‘s Partition Algorithm)
开发语言·python·算法
8Qi82 分钟前
LeetCode 295:数据流的中位数(Median Finder)—— Java 题解 ✅
java·算法·leetcode·优先队列··中位数
competes3 分钟前
数据查询方式最左匹配原则
java·大数据·前端·人工智能·windows
❀͜͡傀儡师4 分钟前
告别脚手架:用 JBang 打通 Java、Kotlin、Python 的脚本化开发
java·python·kotlin·jbang
程序喵大人6 分钟前
C++与C语言的核心区别是啥
c语言·开发语言·c++
Rain5096 分钟前
GitLab-Runner + AI 代码审查服务 + 远程大模型 全套部署运维实战
linux·运维·人工智能·python·ci/cd·gitlab·ai编程
学计算机的计算基6 分钟前
MySQL 锁体系全解:从 MDL 到间隙锁,一次讲透
java·数据库·笔记·python·mysql
jjjava2.07 分钟前
全面拆解 Java 锁:分类辨析 + 底层原理精讲
java·开发语言