Revert "Features: None;"

This reverts commit 778d65b963.
This commit is contained in:
Egor Pavlovich Gorbunov 2025-06-20 05:12:07 +03:00
parent 1e2351afd5
commit 352b5f14ef

View file

@ -192,6 +192,7 @@ COMMON_ANALYSIS = {
"encoder": "double_metaphone", "encoder": "double_metaphone",
"replace": False, "replace": False,
}, },
"synonym_filter": {"type": "synonym", "synonyms_path": "analysis/synonyms.txt"},
"english_stop": {"type": "stop", "stopwords": "_english_"}, "english_stop": {"type": "stop", "stopwords": "_english_"},
}, },
"analyzer": { "analyzer": {
@ -207,6 +208,10 @@ COMMON_ANALYSIS = {
"tokenizer": "standard", "tokenizer": "standard",
"filter": ["lowercase", "asciifolding", "ngram_filter"], "filter": ["lowercase", "asciifolding", "ngram_filter"],
}, },
"synonym_analyzer": {
"tokenizer": "standard",
"filter": ["lowercase", "asciifolding", "synonym_filter"],
},
"name_phonetic": { "name_phonetic": {
"tokenizer": "standard", "tokenizer": "standard",
"filter": ["lowercase", "asciifolding", "double_metaphone"], "filter": ["lowercase", "asciifolding", "double_metaphone"],