Skip to content

Commit

Permalink
Added user dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuflatland-lf committed Nov 9, 2017
1 parent fb807af commit be831fe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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```
Expand Down Expand Up @@ -84,4 +87,3 @@ In Sense, for a server, set ```http://elasticsearch:9200``` to access the Elasti

### Elastic-HQ
```http://localhost:9200/_plugin/hq```

1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions es/config/userdict_ja.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
東京スカイツリー,東京 スカイツリー,トウキョウ スカイツリー,カスタム名詞
あいうえお,あいうえお,アイウエオ,カスタム名詞

0 comments on commit be831fe

Please sign in to comment.