elasticsearch技术解析与实战(一) 入门和索引

GET _cat/nodes
GET _cat/health
GET _cat/shards

GET http://10.37.84.124:9200/secisland?pretty
{  
   "settings":{  
      "number_of_shards":5,
      "number_of_replicas":1
   }
}

GET http://10.37.84.124:9200/_cat/indices?v&index=secisland

PUT secisland/secilog/1/
{
    "computer":"secisland",
    "message":"secisland is an security company"
}

GET secisland/secilog/1/

DELETE secisland/secilog/1

DELETE secisland/

GET secisland/
返回:
{
   "secisland": {
      "aliases": {},
      "mappings": {
         "secilog": {
            "properties": {
               "computer": {
                  "type": "string"
               },
               "message": {
                  "type": "string"
               }
            }
         }
      },
      "settings": {
         "index": {
            "creation_date": "1527232104844",
            "uuid": "B70OmuX6QZijhIIenubl1Q",
            "number_of_replicas": "1",
            "number_of_shards": "5",
            "version": {
               "created": "2030599"
            }
         }
      },
      "warmers": {}
   }
}

GET secisland/_settings
GET secisland/_mapping

POST /secisland/_open
POST /secisland/_close




猜你喜欢

转载自www.cnblogs.com/cxhfuujust/p/9093744.html
今日推荐