码迷,mamicode.com
首页 > 其他好文 > 详细

增删改查

时间:2018-05-05 21:47:05      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:obj   pretty   new   -name   elastic   content   search   type   nbsp   

 

库表列   GET方法

http://10.0.0.17:9200/blog/ariticle/2         GET

{

  • "_index": "blog",
  • "_type": "ariticle",
  • "_id": "2",
  • "_version": 3,
  • "found": true,
  • "_source": {
    • "title": "New version of Elasticsearch released!",
    • "content": "Version 8.0 released today!",
    • "tags": [
      • "announce"
      • ,
      • "elasticsearch"
      • ,
      • "release"
      ]
    }

}

==========================

http://10.0.0.17:9200/     GET

blog/ariticle/2?_source=title,tags

 

只获取blog索引(库名) article type(表名)  id是2的列的  title和tags字段

{

  • "_index": "blog",
  • "_type": "ariticle",
  • "_id": "2",
  • "_version": 3,
  • "found": true,
  • "_source": {
    • "title": "New version of Elasticsearch released!",
    • "tags": [
      • "announce"
      • ,
      • "elasticsearch"
      • ,
      • "release"
      ]
    }

}

增删改查

标签:obj   pretty   new   -name   elastic   content   search   type   nbsp   

原文地址:https://www.cnblogs.com/gaoyuechen/p/8996201.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!