Skip to content

monitora-media/es-utils

Repository files navigation

Elasticsearch plugin - Monitora utils

Various utilities enhancing our Elasticsearch installation.

Release

To create a release, just tag the commit with version number. The built files are available in the release.

git tag 1.1.0
git push --tags

Build

ES_VERSION=8.9.2
./gradlew build -Pelasticsearch.version=$ES_VERSION

Testing

gradle test --debug

Install

elasticsearch-plugin install file://$(pwd)/build/distributions/monitora_utils-*-SNAPSHOT-$ES_VERSION.zip

Usage

Lowercase filter

Analysis filter that converts to lowercase but keeps the originally-cased token in the stream as well.

Czech and Slovak stemmers

Specialized stemmers

Example index settings

{
    "filter": {
        "lowercase": {
            "type": "monitora_lowercase",
            "preserve_original": "true"
        },
        "mczech_stem": {
            "type": "monitora_czech_stem",
            "with_asciifold": "true"
        },
        "mslovak_stem": {
            "type": "monitora_slovak_stem",
            "with_asciifold": "true"
        }
    },
    "analyzer": {
        "index": {
            "type": "custom",
            "tokenizer": "whitespace",
            "filter": [
                "lowercase",
                "mczech_stem"
            ]
        }
    }
}