0
点赞
收藏
分享

微信扫一扫

ElasticSearch基本概念

萧萧雨潇潇 2022-02-09 阅读 54

一、Index

2.1 创建Index

# 可以直接向 Elastic 服务器发出 PUT 请求。
# 下面的例子是新建一个名叫 weather 的 Index。
curl -X PUT 'localhost:9200/weather'

2.2 删除索引

# 下面的例子是删除一个名叫 weather 的 Index。
curl -X DELETE 'localhost:9200/weather'

二、Document

{
  "user": "122",
  "title": "123",
  "desc": "123"
}

三、Type

举报

相关推荐

0 条评论