Is there a way to extend language analyzer with char_filter without having to reimplement the whole analyzer?
We are trying to add html_strip char_filter into language analyzed fields, following https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-lang-analyzer.html#english-analyzer, we can achieve it by having some custom analyzer:
"rebuilt_english": {
"tokenizer": "standard",
"filter": [
"english_possessive_stemmer",
"lowercase",
"english_stop",
"english_stemmer"
],
"char_filter": [
"html_strip"
]
},
but because we have many different language analyzers in the same mapping, following this approach is pretty tedious and results in very long mapping file (have to reimplement every single analyzer).
Is there any way to extend language analyzer with char_filter without having to reimplement it?