开启 库
curl -XPOST ‘192.168.1.60:39200/abc/_open’
关闭 库
curl -XPOST ‘192.168.1.60:39200/abc/_close’
关闭库后,查询不了数据。
查看设置信息
curl -XGET 192.168.1.60:39200/abc/_settings
_settings, _mappings, _warmers and _aliases
get field mapping
host:port/{index}/{type}/_mapping/field/{field} where {index}, {type} and {field} can stand for comma-separated list of names or wild cards. To get mappings for all indices you can use _all for {index}. The following are some examples:
curl -XGET ‘http://localhost:9200/twitter,kimchy/_mapping/field/message‘
curl -XGET ‘http://localhost:9200/_all/_mapping/tweet,book/field/message,user.id‘
curl -XGET ‘http://localhost:9200/_all/_mapping/tw*/field/*.id‘
Specifying fields
curl -XGET “http://localhost:9200/publications/_mapping/article/field/author.id,text,name“