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"
}
}
}

最新文章

  1. TimerToPdf
  2. 一个前端引用Facebook评论插件案例
  3. 如何在winform或者wpf里面打开浏览器并设置宽高位置
  4. Slick – 这是你需要的最后一款 jQuery 传送带插件
  5. quartzScheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak解决
  6. (六)STM32的时钟系统
  7. navicat premium 导出表结构
  8. oracle监听服务无法打开
  9. InnoDB Double write
  10. CURL: CURLE_COULDNT_CONNECT问题探究
  11. centos 7 mariadb 启动问题
  12. Docker容器技术
  13. 如何关闭常见浏览器的 HSTS 功能
  14. comtypes加word 2013批量将pdf转换为doc
  15. MemoryStream请求与接收
  16. 手机游戏引擎 Cocos
  17. loadrunner笔记(三):设置、运行场景和生成测试报告
  18. 登陆网页模板 - 1 (HTML+CSS)
  19. Android自动化测试中AccessibilityService获取控件信息(2)-三种方式对比
  20. 手写Bind

热门文章

  1. 配置同时使用 Gitlab、Github、Gitee(码云) 共存的开发环境
  2. 数据库 OR 运维 ____bayaim
  3. BayaiM__Oracle ASM操作管理
  4. Linux—网络防火墙详解
  5. 初学JavaScript正则表达式(二)
  6. 关于使用LocalDateTime进行存储,时间相差比较多的问题。
  7. 201871010116-祁英红《面向对象程序设计(java)》第四周学习总结
  8. Linux学习笔记-第14天 老朋友相见
  9. Vue 变异方法splice删除评论功能
  10. vue.js操作元素属性