操作es

GET /shuminindex/_settings

GET  /shuminindex,gameprocesslog/_settings

GET /_all/_settings



PUT /shuminindex/book/2
{
  "title":"book",
  "name":{
    "first":"ddd",
    "last":"tong"
  },
  "time":"2015-06-15",
  "price":"80.02"
}
#查询chax
GET /shuminindex/book/6
GET /shuminindex/book/6?_source=name
GET /shuminindex/book/6?_source
GET /shuminindex/book/6?_source=name,time



#替换
PUT /shuminindex/book/6
{
  "title":"book",
  "name":{
    "first":"ddd",
    "last":"tong"
  },
  "time":"2015-06-15",
  "price":"80.00006"
}

#修改
POST  /shuminindex/book/3/_update
{
   "doc": {
       "price":"900.0"
        
   } 
}


DELETE /shuminindex/book/3


DELETE /shuminindex
GET /shuminindex/book/6



猜你喜欢

转载自blog.csdn.net/wangshuminjava/article/details/80205600