Unknown char_filter type [mapping] for [remove_punctuation]

Hi all,

I'm bashing my head against this but getting a whole lot of nowhere. My business is currently working on upgrading our ES clusters from 2.1.1 (!!) up to something in the 6 range. Our Elastics are running in Kubernetes using a lightly-customized Dockerfile atop an Alpine 3.8 base.

One of the devs gave me a modified version of an index/mapping definition we currently use in production. On attempting to apply it, I get the titular message. I have tried several different variations on the same and get the same results. In fact, I cannot set the type on that char_filter at all without getting bounced. Any ideas as to why?

I'm thinking it might have something to do with Alpine, but I can't corroborate that just yet. My definitions are below. I have tried this with 6.1.1 and 6.4.1 to the same effect. The index name is "places.v9" with an alias over the top, but since we can't get the index up that's more or less a dead end at this point. Thank you in advance!

{
  "settings": {
    "index": {
      "analysis": {
        "char_filter": {
          "remove_punctuation": {
            "type": "mapping",
            "mappings": [
              ".=>",
              ",=>",
              "-=>",
              "_=>",
              "'=>"
            ]
          }
        },
        "analyzer": {
          "autocomplete": {
            "filter": [
              "lowercase",
              "asciifolding"
            ],
            "char_filter": [
              "remove_punctuation"
            ],
            "type": "custom",
            "tokenizer": "autocomplete"
          },
          "raw_analyzer": {
            "filter": [
              "lowercase",
              "asciifolding"
            ],
            "char_filter": [
              "remove_punctuation"
            ],
            "type": "custom",
            "tokenizer": "no_split"
          },
          "whitespace_analyzer": {
            "filter": [
              "lowercase",
              "asciifolding"
            ],
            "char_filter": [
              "remove_punctuation"
            ],
            "type": "custom",
            "tokenizer": "whitespace"
          },
          "autocomplete_search": {
            "tokenizer": "lowercase"
          }
        },
        "tokenizer": {
          "no_split": {
            "pattern": "^(.*)$",
            "type": "pattern",
            "group": "0"
          },
          "autocomplete": {
            "type": "edge_ngram",
            "min_gram": 1,
            "max_gram": 10,
            "token_chars": [
              "letter",
              "digit"
            ]
          }
        }
      },
      "number_of_shards": "5",
      "number_of_replicas": "1"
    }
  },
  "mappings": {
    "placesMapping": {
      "properties": {
        "active": {
          "type": "boolean"
        },
        "bookingsCount": {
          "type": "integer"
        },
        "bookingsCounts": {
          "type": "long"
        },
        "bookingsWeight": {
          "type": "integer"
        },
        "city": {
          "type": "text",
          "analyzer": "autocomplete",
          "search_analyzer": "autocomplete_search"
        },
        "countryCode": {
          "type": "text",
          "analyzer": "whitespace_analyzer"
        },
        "county": {
          "type": "text",
          "analyzer": "autocomplete",
          "search_analyzer": "autocomplete_search"
        },
        "doc": {
          "properties": {
            "active": {
              "type": "boolean"
            }
          }
        },
        "featureClass": {
          "type": "text",
          "index": false
        },
        "featureCode": {
          "type": "text",
          "index": false
        },
        "from": {
          "type": "long"
        },
        "geoLocation": {
          "type": "geo_point"
        },
        "hitCount": {
          "type": "long"
        },
        "min_score": {
          "type": "double"
        },
        "mongoId": {
          "type": "text",
          "index": false
        },
        "name": {
          "type": "text",
          "fields": {
            "exact": {
              "type": "text",
              "analyzer": "raw_analyzer"
            }
          },
          "analyzer": "autocomplete",
          "search_analyzer": "autocomplete_search"
        },
        "nameStripped": {
          "type": "keyword",
          "index": false
        },
        "populationCount": {
          "type": "integer"
        },
        "size": {
          "type": "long"
        },
        "sort": {
          "type": "text"
        },
        "sourceId": {
          "type": "keyword",
          "index": false
        },
        "sourceType": {
          "type": "text"
        },
        "state": {
          "type": "text",
          "analyzer": "autocomplete",
          "search_analyzer": "autocomplete_search"
        },
        "stateCode": {
          "type": "text",
          "index": false
        },
        "zip": {
          "type": "text",
          "analyzer": "whitespace_analyzer"
        }
      }
    }
  }
}

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