//设置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
}

最新文章

  1. MacOS中使用QT开发iOS应用
  2. 在myeclipse2014使用git上传github
  3. 【代码笔记】iOS-判断有无网络
  4. OpenMP求完数
  5. ubuntu14.04 server安装gnome-desktop
  6. 5个常用Java代码混淆器 助你保护你的代码
  7. 【转载】Spring中DispatcherServlet与ContextLoaderListener的区别
  8. 【Python Network】权威域名服务器级联查询
  9. hibernate ——关联关系
  10. restful framework 认证源码流程
  11. Algorithm --> 十大排序算法
  12. Python母版使用
  13. HelloWorld.php
  14. mysql之commit,transaction事物控制
  15. python装饰器(二)
  16. iphone上实现H264 硬编码
  17. Hibernate缓存应用的积累与总结
  18. 微信 小程序布局 swiper 页面
  19. 用Jquery获取Url的参数
  20. php常用的几个预定义变量

热门文章

  1. include 问题
  2. Docker 的 Image 太大,怎么变小?
  3. 64位电脑上配置mysql-connector-odbc的方法
  4. samba服务器搭建小记
  5. Eclipse导入Tomcat源码(转)
  6. 习课的视频播放器 video.js
  7. java线程内存模型,线程、工作内存、主内存
  8. NHibernate系列文章二十八:NHibernate Mapping之Auto Mapping(附程序下载)
  9. centos,nginx安装备忘
  10. 关于checkbox全选与反选的问题