码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-05-26 18:45:46      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:replica   eal   ted   elastics   uuid   cse   pos   create   BL1   

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




 

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

标签:replica   eal   ted   elastics   uuid   cse   pos   create   BL1   

原文地址:https://www.cnblogs.com/cxhfuujust/p/9093744.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!