Error when PUT Templet in ES 7.1.0

When I attempt to PUT this template to ES 7.1.0 I get the following error.

ElasticsearchStatusException[Elasticsearch exception [type=action_request_validation_exception, reason=Validation Failed: 1: template is missing;]

{
  "template": "*",
  "settings": {
    "analysis": {
      "filter": {
        "token_autocomplete_filter": {
          "_description": "index the edge token prefixes shorter than max_gram",
          "type": "edge_ngram",
          "min_gram": 1,
          "max_gram": 30
        },
        "english_stop": {
          "type": "stop",
          "stopwords": "_english_"
        },
        "english_stemmer": {
          "type": "stemmer",
          "language": "english"
        },
        "english_possessive_stemmer": {
          "type": "stemmer",
          "language": "possessive_english"
        }
      },
      "analyzer": {
        "keylowercase": {
          "type": "custom",
          "tokenizer": "keyword",
          "filter": "lowercase"
        },
        "word_autocomplete": {
          "type": "custom",
          "tokenizer": "standard",
          "filter": [
            "lowercase",
            "token_autocomplete_filter",
            "asciifolding"
          ]
        },
        "english": {
          "tokenizer": "standard",
          "filter": [
            "english_possessive_stemmer",
            "lowercase",
            "english_stop",
            "english_stemmer"
          ]
        },
        "english_large": {
          "tokenizer": "standard",
          "filter": [
            "english_possessive_stemmer",
            "lowercase",
            "english_stop",
            "english_stemmer",
            "unique"
          ]
        },
        "search_standard": {
          "tokenizer": "standard",
          "filter": [
            "lowercase",
            "asciifolding"
          ]
        },
        "search_username": {
          "tokenizer": "standard",
          "filter": [
            "lowercase",
            "asciifolding"
          ],
          "char_filter": [
            "omit_whitespaces"
          ]
        }
      },
      "char_filter": {
        "omit_whitespaces": {
          "type": "pattern_replace",
          "pattern": "\\s+",
          "replacement": ""
        }
      }
    }
  }
}

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