赞
踩
PUT /student_test
PUT /student
{
"settings": {
"number_of_shards": 2,
"number_of_replicas": 2
}
}
PUT /teacher
{
"settings": {
"number_of_shards": 2,
"number_of_replicas": 2
},
"mappings":{
"properties":{
"id":{
"type":"integer"
},
"name":{
"type":"keyword"
},
"age":{
"type":"long"
},
"desc":{
"type":"text"
},
"birthday":{
"type":"date"
}
}
}
}
GET /teacher
GET /_cat/indices
GET /student_test/_count
GET _all/_count
GET /_cat/shards/student_test?v
GET /_cat/indices?v&h=i,tm&s=tm:desc
GET /_cat/indices?v&s=docs.count:desc
GET /_cat/indices?v&health=green
DELETE /student_test1
PUT /teacher/_settings
{
"index":{
"number_of_replicas":4
}
}
POST /teacher/_mapping
{
"properties":{
"phone":{
"type":"keyword"
}
}
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。