Last active
April 12, 2023 15:16
-
-
Save kekekeks/4961821628b0fe8ba800 to your computer and use it in GitHub Desktop.
russian + english analyzer for elasticsearch русский + английский
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"settings": { | |
"analysis": { | |
"filter": { | |
"english_stop": { | |
"type": "stop", | |
"stopwords": "_english_" | |
}, | |
"english_stemmer": { | |
"type": "stemmer", | |
"language": "english" | |
}, | |
"english_possessive_stemmer": { | |
"type": "stemmer", | |
"language": "possessive_english" | |
}, | |
"russian_stop": { | |
"type": "stop", | |
"stopwords": "_russian_" | |
}, | |
"russian_stemmer": { | |
"type": "stemmer", | |
"language": "russian" | |
}, | |
}, | |
"analyzer": { | |
"ru_en": { | |
"tokenizer": "standard", | |
"filter": [ | |
"lowercase", | |
"russian_stop", | |
"russian_stemmer", | |
"english_possessive_stemmer", | |
"english_stop", | |
"english_stemmer" | |
] | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment