elasticsearch - Using Mapping char filter with synonyms token filter does not work -
synonyms , my_char_filter works fine when used separately , synonyms stop working when use these 2 together. use elastic v 5.5
"analysis": { "analyzer": { "my_custom_analyzer": { "type": "custom", "tokenizer": "keyword", "filter": ["synonym"], "char_filter": ["my_char_filter"] } }, "filter" : { "synonym" : { "type" : "synonym", "synonyms" : [ "i-pod, pod => ipod", "universe, cosmos" ] } }, "char_filter": { "my_char_filter": { "type": "mapping", "mappings": [ "i => ı", "e => ə", "o => ö", "u => ü", "c => ç", "g => ğ", "sh =>ş", "ch =>ç" ] }
} }
Comments
Post a Comment