Elasticsearch之核心元数据:_index,_type,_id [学习笔记]

1、通过Kibana添加一条数据:

PUT /test_index/test_type/1
{
  "test_content":"test test"
}

执行后的效果如下:
这里写图片描述

获取数据:

PUT /test_index/test_type/1
{
  "test_content":"test test"
}

显示效果:
这里写图片描述

结果内容是:

{
  "_index": "test_index",
  "_type": "test_type",
  "_id": "1",
  "_version": 1,
  "found": true,
  "_source": {
    "test_content": "test test"
  }
}

猜你喜欢

转载自blog.csdn.net/toto1297488504/article/details/80205173