git clone https://github.com/Velman04/docker-elasticsearch-analysis-lemmagen.git && cd docker-elasticsearch-analysis-lemmagen
sudo docker build -t elasticsearch-analysis-lemmagen .
sudo docker run -d -p 9200:9200 elasticsearch-analysis-lemmagen
Open and enjoy :) - http://localhost:9200/
cd project_path/assets && sudo mkdir lexicons && cd lexicons && wget https://github.com/vhyza/lemmagen-lexicons/raw/master/free/lexicons/uk.lem
- Open
config/packages/fos_elastica.yaml
- Replace all
nGram
withngram
. - In
fos_elastica.indexes.bitbag_shop_product.settings.index.index.analysis.analyzer.custom_search_analyzer.filter
, replacenowball_ua
withlemmagen_ukrainian
. - In
fos_elastica.indexes.bitbag_shop_product.settings.index.analysis.filter.snowball_ua
replace to
lemmagen_ukrainian:
type: lemmagen
language: uk
lexicon: uk.lem
bin/console fos:el:pop
- That's all :)