anchor.diff:      },
       "mappings": {
         "_source": {
  -        "enabled": false
  +        "enabled": true
         },
         "properties": {
           "host_name": {
  
positive.code: for `logs-*-*`.
  ====
  // end::built-in-index-templates[]
  
  When a composable template matches a given index
  it always takes precedence over a legacy template. If no composable template matches, a legacy
  template may still match and be applied.
  
  If an index is created with explicit settings and also matches an index template,
  the settings from the create index request take precedence over settings specified in the index template and its component templates.
  
  [source,console]
  --------------------------------------------------
  PUT _component_template/component_template1
  {
    "template": {
  
negative.code:     }
    },
    "priority": 500,
    "composed_of": ["component_template1", "runtime_component_template"], <1>
    "version": 3,
    "_meta": {
      "description": "my custom"
    }
  }
  ----
  // TEST[continued]
  
  ////
  
  [source,console]
  ----
  DELETE _index_template/*
  DELETE _component_template/*
  ----
  // TEST[continued]
  
  ////
  
  