August 2019
Intermediate to advanced
560 pages
13h 41m
English
In this subsection, we will demonstrate how to make the IK analyzer more powerful by adding a custom dictionary. In the Elasticsearch Docker container, a IKAnalyzer.cfg.xml configuration file is located at /usr/share/elasticsearch/config/analysis-ik, as shown in the following screenshot:
Use vi editor to edit the file IKAnalyzer.cfg.xml. Once the file is opened, it may show non-printable codes. Use the vi command in the following code block to update the encoding:
:set encoding=utf-8
The file content will be shown correctly as the following code block:
To support hot swapping dictionary ...
Read now
Unlock full access