查询所有数据 POST请求:
http://userName:password@host:9200/index/type/_search?
{
“query”: {
“match_all”: {}
}
}
根据id删除 DELETE 请求:
http://userName:password@host:9200/index/type/{id}
{ “match_all”: {}}
创建mapping PUT 请求:
http://userName:password@host:9200/index/type/_mapping
{
“properties”: {
“publishYears”: {
“type”: “keyword”
}
}
}
查询所有mapping GET请求:
http://userName:password@host:9200/index/type/_mapping?pretty