elasticsearch: 创建mapping
2024-10-20 07:47:08
elasticsearch版本: 6.5.4
创建mapping
PUT http://192.168.2.136:9200/index_text/_mapping/text/
{
"dynamic": "false",
"properties": {
"id": {
"type": "keyword"
},
"edit_status_t": {
"type": "text"
},
"content_t": {
"type": "text",
// 分词-采用单字分词器
"analyzer": "standard"
},
"content_type_t": {
"type": "text"
}
"question_id_t": {
"type": "keyword"
}
"type_txt": {
"type": "keyword"
},
"create_time_dt": {
"type": "date",
// 日期格式
"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
}
}
}
添加mapping属性:
PUT http://192.168.2.136:9200/index_text/_mapping/text/
{
"properties": {
"update_time_dt": {
"type": "date",
// 日期格式
"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
}
}
}
最新文章
- TimerToPdf
- 一个前端引用Facebook评论插件案例
- 如何在winform或者wpf里面打开浏览器并设置宽高位置
- Slick – 这是你需要的最后一款 jQuery 传送带插件
- quartzScheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak解决
- (六)STM32的时钟系统
- navicat premium 导出表结构
- oracle监听服务无法打开
- InnoDB Double write
- CURL: CURLE_COULDNT_CONNECT问题探究
- centos 7 mariadb 启动问题
- Docker容器技术
- 如何关闭常见浏览器的 HSTS 功能
- comtypes加word 2013批量将pdf转换为doc
- MemoryStream请求与接收
- 手机游戏引擎 Cocos
- loadrunner笔记(三):设置、运行场景和生成测试报告
- 登陆网页模板 - 1 (HTML+CSS)
- Android自动化测试中AccessibilityService获取控件信息(2)-三种方式对比
- 手写Bind
热门文章
- 配置同时使用 Gitlab、Github、Gitee(码云) 共存的开发环境
- 数据库 OR 运维 ____bayaim
- BayaiM__Oracle ASM操作管理
- Linux—网络防火墙详解
- 初学JavaScript正则表达式(二)
- 关于使用LocalDateTime进行存储,时间相差比较多的问题。
- 201871010116-祁英红《面向对象程序设计(java)》第四周学习总结
- Linux学习笔记-第14天 老朋友相见
- Vue 变异方法splice删除评论功能
- vue.js操作元素属性