
//创建索引  curl -XPUT http://localhost:9200/zys  -H 'Content-Type:application/json' -d '{json对象参数}'

{
  "settings": {
    "refresh_interval": "1s",
    "index.number_of_shards": 5,
    "index.number_of_replicas": 1,
    "analysis": {
      "analyzer": {
        "comma": {
          "type": "pattern",
          "pattern": ","
        },
        "ikMax": {
          "tokenizer": "ik_max_word"
        },
        "ikSmart": {
          "tokenizer": "ik_smart"
        }
      }
    }
  }
}



//修改索引设置 curl -XPOST http://localhost:9200/zys/_settings  -H 'Content-Type:application/json' -d '{json对象参数}'

{

   "refresh_interval": "2s",
   "index.number_of_replicas": 0

}


//删除索引  curl -XDELETE http://localhost:9200/zys

