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

]

}

}

}

相关推荐
虾..21 分钟前
C++ 哈希
开发语言·c++·哈希算法
liu****31 分钟前
14.日志封装和线程池封装
linux·开发语言·c++
青青草原羊村懒大王32 分钟前
python基础知识三
开发语言·python
云动雨颤32 分钟前
访问宝塔面板安全入口404?SSH命令轻松解决
linux·运维·安全
将编程培养成爱好37 分钟前
C++ 设计模式《统计辅助功能》
开发语言·c++·设计模式·访问者模式
随便叫个啥呢41 分钟前
java使用poi-tl模版+vform自定义表单生成word,使用LibreOffice导出为pdf
java·pdf·word
NPE~44 分钟前
[Linux命令分享]日志查看 — — less
linux·运维·less·常用命令·日志查看
赖small强1 小时前
Linux 系统调用在 ARM 上的实现与工作机制
linux·系统调用·内核态·用户态·上下文切换
fie88891 小时前
基于循环谱分析的盲源分离信号处理MATLAB
开发语言·matlab·信号处理
kgduu1 小时前
go-ethereum之rpc
开发语言·rpc·golang