es6.x構文

1501 ワード

テスト分詞器
PUT test
GET test/_analyze
{
  "analyzer": "ik_smart", 
  "text":" "
}
# 
{
  "tokens": [
    {
      "token": " ",
      "start_offset": 0,
      "end_offset": 2,
      "type": "CN_WORD",
      "position": 0
    },
    {
      "token": " ",
      "start_offset": 2,
      "end_offset": 4,
      "type": "CN_WORD",
      "position": 1
    }
  ]
}
# 
PUT new_blog
{
  "settings": {
    "number_of_shards": 3,
    "number_of_replicas": 0
  }
}
# 
{
  "acknowledged": true,
  "shards_acknowledged": true,
  "index": "new_blog"
}
# , 
PUT new_blog/_settings
{

    "number_of_replicas": 2
}
# 
{
  "acknowledged": true
}
"blocks.read_only": true # 
"blocks.read": true# 
"blocks.write": true# 
# 
 GET new_blog/_settings
# 
 GET new_blog,blog/_settings
# 
 GET _all/_settings
# 
DELETE new_blog
# 
POST blog/_close
# 
POST blog/_open
# 
POST blog1,blog2,blog3/_close
# 
POST blog1,blog2,blog3/_open
# / , , ignore_unavailable=true 
POST blog,test,zb/_close?ignore_unavailable=true
# 
POST _all/_close
# test 
POST test*/_close