curl方式创建elasticsearch的mapping
2024-08-29 11:03:51
curl方式创建elasticsearch的mapping
curl -XPUT 'http://192.168.1.105:9200/bank/item2/_mapping' -d '
{
"item2": {
"properties": {
"title": {
"type": "string",
"boost": 2.0,
"index": "analyzed",
"store": "yes",
"term_vector" : "with_positions_offsets"
},
"description": {
"type": "string",
"boost": 1.0,
"index": "analyzed",
"store": "yes",
"term_vector" : "with_positions_offsets"
},
"link": {
"type": "geo_point"
},
"ip": {
"store": true,
"type": "ip"
}
}
}
}'
最新文章
- Java豆瓣电影爬虫——小爬虫成长记(附源码)
- Android 二维码 生成和识别(转)
- 阻抗计算(用SI9000如何计算微带线)
- Oracle 时间处理(加减)
- (Android学习系列)三,窗口的常用事件
- SQLite数据插入异常
- netty httpserver
- Django文档——Model字段类型(Field Types)
- pop动画大全 只能时代程序员更应该关心效果而不是冷冰冰的代码
- #include<;unistd.h>;存在linux中,含有系统服务的函数
- SqlServer查询数据库所有表
- 【MongoDB】在windows平台mongodb切片集群(三)
- linux内核移植到S5pv210
- delphi公用函数
- FineUIMvc随笔 - 怎样在控件中嵌套 HTML
- salesforce零基础学习(七十六)顺序栈的实现以及应用
- CMCC验证绕过POC
- [转]gitlab cicd (二)系列之安装git-runner rpm安装方式
- 简单的Map缓存机制实现
- impress.js 中文注释