Morfologik plugin for elasticsearch 7.x, 6.x, 5.x and 2.x. It's lucene-analyzers-morfologik wrapper for elasticsearch.
Plugin provide "morfologik" analyzer and "morfologik_stem" token filter.
Originally created by https://github.com/monterail/elasticsearch-analysis-morfologik
bin/elasticsearch-plugin install pl.allegro.tech.elasticsearch.plugin:elasticsearch-analysis-morfologik:7.8.0
tip: select proper plugin version, should be the same as elasticsearch version
version 7.6.0
{"type": "morfologik_stem", "dictionary": "polish-wo-brev.dict"}
Request:
GET _analyze
{
"analyzer": "morfologik",
"text": "jestem"
}
Response:
{
"tokens": [
{
"token": "być",
"start_offset": 0,
"end_offset": 6,
"type": "<ALPHANUM>",
"position": 0
}
]
}
Request:
GET _analyze
{
"tokenizer": "standard",
"filter": ["morfologik_stem"],
"text": "jestem"
}
Response:
{
"tokens": [
{
"token": "być",
"start_offset": 0,
"end_offset": 6,
"type": "<ALPHANUM>",
"position": 0
}
]
}
All ready to install plugins are deployed to maven central.
bin/elasticsearch-plugin install \
https://repo1.maven.org/maven2/pl/allegro/tech/elasticsearch/plugin/elasticsearch-analysis-morfologik/5.4.0/elasticsearch-analysis-morfologik-5.4.0-plugin.zip
tip: select proper plugin version, should be the same as elasticsearch version
bin/plugin install \
https://repo1.maven.org/maven2/pl/allegro/tech/elasticsearch/plugin/elasticsearch-analysis-morfologik/2.4.2/elasticsearch-analysis-morfologik-2.4.2-plugin.zip
tip: select proper plugin version, should be the same as elasticsearch version
./gradlew clean build