# elasticsearch索引操作

**URL:** <https://www.shiqidu.com/t/topic/490>\
**Category:** 开发调优\
**Tags:** Elasticsearch\
**Created:** [2018 年9 月 14 日 15:16 UTC](https://www.shiqidu.com/t/topic/490 "2018-09-14T15:16:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

作者： ![Eureka](https://www.shiqidu.com/user_avatar/www.shiqidu.com/eureka/32/5_2.png) [@Eureka](https://www.shiqidu.com/u/Eureka)\
发布日期： [2018 年9 月 14 日 15:16 UTC](https://www.shiqidu.com/t/topic/490/1 "2018-09-14T15:16:38Z")

</div>

```bash
curl -X POST "http://localhost:9200/music/_open" # 打开索引 关闭索引 （_close）

curl -X GET 'http://localhost:9200/_cat/indices?v' #查看索引

curl 'localhost:9200/_mapping?pretty=true' #列出每个 Index 所包含的 Type

curl 'localhost:9200/accounts/person/_search' #查看某个索引下全部记录

```
