diff --git a/README.md b/README.md index 2d5ba33..d837b0b 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,9 @@ This is for setting up docker-composer to test Elasticsearch and Kuromoji agains 6. Click save and restart Liferay server 7. Loging as an administrator, navigate to Control Panel -> Configuration -> Server Configuration and run reindex. +## Modify user dictionaly +1. Open /es/config/userdict_ja.txt +2. Modify contents according to the [user guide](https://www.elastic.co/guide/en/elasticsearch/plugins/current/analysis-kuromoji-tokenizer.html) ## Initialize set up after change configurations 1. Stop services with ```docker-compose stop``` 2. Delete folders under ```/es/data``` @@ -84,4 +87,3 @@ In Sense, for a server, set ```http://elasticsearch:9200``` to access the Elasti ### Elastic-HQ ```http://localhost:9200/_plugin/hq``` - diff --git a/docker-compose.yml b/docker-compose.yml index 2029105..cde15e4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,6 +10,7 @@ services: - ./es/data/:/usr/share/elasticsearch/data/ - ./es/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml - ./es/config/logging.yml:/usr/share/elasticsearch/config/logging.yml + - ./es/config/userdict_ja.txt:/usr/share/elasticsearch/config/userdict_ja.txt - ./es/logs/:/var/log/elasticsearch/ environment: - "ES_JAVA_OPTS: -Xmx2048m -Xms2048m" diff --git a/es/config/userdict_ja.txt b/es/config/userdict_ja.txt new file mode 100644 index 0000000..7a7b93e --- /dev/null +++ b/es/config/userdict_ja.txt @@ -0,0 +1,2 @@ +東京スカイツリー,東京 スカイツリー,トウキョウ スカイツリー,カスタム名詞 +あいうえお,あいうえお,アイウエオ,カスタム名詞 \ No newline at end of file