Index template - settings

Hi All,

I set up ILM for a particular index pattern. After applying this when I check index settings I see the following output:

GET abc-90010-2023.12.18/_settings
{
  "abc-90010-2023.12.18": {
    "settings": {
      "index": {
        "lifecycle": {
          "name": "30d-cleanup-history"
        },
        "routing": {
          "allocation": {
            "include": {
              "_tier_preference": "data_content"
            }
          }
        },
        "number_of_shards": "1",
        "provided_name": "abc-90010-2023.12.18",
        "creation_date": "1702857606753",
        "number_of_replicas": "1",
        "uuid": "p30SnGHaTp62S1EABhceEA",
        "version": {
          "created": "8070099"
        }
      }
    }
  }
}

After doing this, now I wanted to apply some more settings on the same index pattern as follows and gave it priority 1:

PUT /_index_template/template_90010
{
  "index_patterns" : ["abc-90010-202*"],
    "priority" : 1,
    "template": {
    "settings" : {
      "highlight.max_analyzed_offset" : 2000000
    }
  }
}

When I run query on index setting now I see that the earlier settings for ILM for the same index pattern have disappeared/ over-written and it only shows the new settings.

{
  "abc-90010-2023.12.18": {
    "settings": {
      "index": {
        "highlight": {
          "max_analyzed_offset": "2000000"
        },
        "routing": {
          "allocation": {
            "include": {
              "_tier_preference": "data_content"
            }
          }
        },
        "number_of_shards": "1",
        "provided_name": "abc-90010-2023.12.18",
        "creation_date": "1702857600899",
        "number_of_replicas": "1",
        "uuid": "OCF6tsMmR42bUEQcVeXHSw",
        "version": {
          "created": "8070099"
        }
      }
    }
  }
}

I need to keep both setting i.e. ILM and offset related for the same index pattern.

How can I achieve that?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.