增删改查

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

}

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