Elasticsearch mapping
2024-08-27 20:18:23
//设置mapping
Put: http://192.168.1.102:9200/indexName
{
"settings": {
"number_of_shards": ,
"number_of_replicas":
},
"mappings": {
"typeName": {
"properties": {
"sno": {
"type": "string"
},
"sname": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
} //返回
{
"acknowledged": true
}
//修改mapping
Put: http://192.168.1.102:9200/indexName/typeName/_mapping/
{
"typeName": {
"properties": {
"sno": {
"type": "string",
"index": "not_analyzed"
}
}
}
} {
"acknowledged": true
}
最新文章
- MacOS中使用QT开发iOS应用
- 在myeclipse2014使用git上传github
- 【代码笔记】iOS-判断有无网络
- OpenMP求完数
- ubuntu14.04 server安装gnome-desktop
- 5个常用Java代码混淆器 助你保护你的代码
- 【转载】Spring中DispatcherServlet与ContextLoaderListener的区别
- 【Python Network】权威域名服务器级联查询
- hibernate ——关联关系
- restful framework 认证源码流程
- Algorithm -->; 十大排序算法
- Python母版使用
- HelloWorld.php
- mysql之commit,transaction事物控制
- python装饰器(二)
- iphone上实现H264 硬编码
- Hibernate缓存应用的积累与总结
- 微信 小程序布局 swiper 页面
- 用Jquery获取Url的参数
- php常用的几个预定义变量