elasticsearch mapping nad

创建mapping  模板

  • PUT _template/text
  • {
  •   "index_patterns":["te*","bat*"],
  •   "order":0,
  •   "settings":{
  •     "number_of_shards":1
  •   },
  •   "mappings": {
  •     "doc":{
  •       "_source":{
  •         "enabled":false
  •       },
  •       "properties":{
  •         "name":{
  •           "type":"keyword"
  •         }
  •       }
  •     }
  •   }
  • }
  • index_patterns 定义给谁使用模板
  • "order"模板的优先级
  •  

猜你喜欢

转载自blog.csdn.net/gtinlian/article/details/85249544