Skip to content
Snippets Groups Projects
Commit deb45420 authored by jan.bednarik's avatar jan.bednarik
Browse files

Update readme.

parent e33a659b
No related branches found
No related tags found
No related merge requests found
run:
docker-compose up -d
stop:
docker-compose down
destroy:
docker-compose down -v
build:
docker build -t openlobby/openlobby-es-czech:latest .
push:
docker push openlobby/openlobby-es-czech:latest
release:
make build
make push
# Elasticsearch with Czech analyzer
Batteries included:
- ICU Analysis Plugin
- Czech Hunspell dictionaries (from OpenOffice)
X-Pack plugin is removed.
## Usage
Create your index with these settings:
```
{
'settings': {
'analysis': {
'filter': {
'czech_stop': {
'type': 'stop',
'stopwords': '_czech_',
},
'czech_stemmer': {
'type': 'stemmer',
'language': 'czech',
},
'cs_CZ': {
'type': 'hunspell',
'locale': 'cs_CZ',
'dedup': True,
}
},
'analyzer': {
'czech': {
'tokenizer': 'standard',
'filter': [
'icu_folding',
'lowercase',
'czech_stop',
'czech_stemmer',
'cs_CZ',
]
}
}
}
}
}
```
You can use `'czech'` analyzer on text fields now.
## Build
Build docker container: `make build`
## Run for local development
Run Elasticsearch on port 9200: `make run`
Stop Elasticsearch container: `make stop`
Stop and/or remove volume with data: `make destroy`
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment