elasticsearch索引操作

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'   #查看某个索引下全部记录