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

]

}

}

}

相关推荐
热爱嵌入式的小许9 分钟前
Linux基础项目开发1:量产工具——显示系统
linux·运维·服务器·韦东山量产工具
ok!ko1 小时前
设计模式之原型模式(通俗易懂--代码辅助理解【Java版】)
java·设计模式·原型模式
2402_857589361 小时前
“衣依”服装销售平台:Spring Boot框架的设计与实现
java·spring boot·后端
吾爱星辰2 小时前
Kotlin 处理字符串和正则表达式(二十一)
java·开发语言·jvm·正则表达式·kotlin
ChinaDragonDreamer2 小时前
Kotlin:2.0.20 的新特性
android·开发语言·kotlin
IT良2 小时前
c#增删改查 (数据操作的基础)
开发语言·c#
哎呦没2 小时前
大学生就业招聘:Spring Boot系统的架构分析
java·spring boot·后端
Kalika0-03 小时前
猴子吃桃-C语言
c语言·开发语言·数据结构·算法
_.Switch3 小时前
Python Web 应用中的 API 网关集成与优化
开发语言·前端·后端·python·架构·log4j
编程、小哥哥3 小时前
netty之Netty与SpringBoot整合
java·spring boot·spring