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.15.2
./gradlew build -Pelasticsearch.version=$ES_VERSION

export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH
JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 PATH=$JAVA_HOME/bin:$PATH ./gradlew build -Pelasticsearch.version=8.15.2

Testing

gradle test --info --tests "Croatian*"

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"
            ]
        }
    }
}

About

Elasticsearch plugin with utilities

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •