增删改查

 

库表列   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"
      ]
    }

}

posted @ 2018-05-05 21:20  滴滴滴  阅读(187)  评论(0编辑  收藏  举报