# elasticsearch索引操作

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

<div class="post-metadata">

**Author:** ![Leon](https://www.shiqidu.com/user_avatar/www.shiqidu.com/leon/32/5_2.png) [@Leon](https://www.shiqidu.com/u/Leon)\
**Post date:** [September 14, 2018, 3:16pm 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' #查看某个索引下全部记录

```
