The Morphological Analysis plugin integrates Russian and English morphology for java and lucene framework into elasticsearch. This plugin adds two new analyzers: “russian_morphology” and “english_morphology” and two token filters with the same names.
The demo.sh file shows a few examples of the analyzers behavior.
For Elasticsearch version 6.0 and above there is an officially supported hunspell token filter with russian dictionaries. But in my opinion it behaves much poorer than this plugin because of limited dictionary and no predefined behavior on unknown words.
To build plugin execute following command line:
gradlew.bat build
The build is tested with Java 12.
Plugin is avaliable only for Elasticsearch 7.4.1.
Morphological Analysis Plugin | Elasticsearch | URL |
---|---|---|
7.4.1 | 7.4.1 | not supported |
In order to install the plugin, simply run the following command in the elasticsearch home directory:
bin/elasticsearch-plugin install file:///zip_file_path
where zip_file_path
is full path to zip archive with plugin.