The IK Analysis plugin adds Lucene IK Chinese tokenizers and analyzers to Elasticsearch and OpenSearch clusters. It supports custom dictionaries and remote dictionary hot reload without restarting the node.
Overview
IK Analysis wraps the Lucene IK analyzer so search clusters can index and query Chinese text with dedicated ik_smart and ik_max_word analyzers and matching tokenizers. Packaged builds align with major Elasticsearch and OpenSearch releases and install through each engine's plugin command.
ik_max_word splits text into the finest tokens, which suits term-style queries. ik_smart uses coarser chunks geared toward phrase-style queries, and its tokens are not necessarily a subset of ik_max_word output.
Administrators point configuration at IKAnalyzer.cfg.xml under the cluster config or plugin directory. Custom word lists must be UTF-8 encoded to load correctly.
For hot reload, a remote HTTP source can supply one term per line; the plugin watches Last-Modified and ETag headers and refreshes the lexicon when either changes, avoiding a full node restart.
Key features
- ik_smart coarse segmentation
- ik_max_word fine segmentation
- Custom UTF-8 dictionaries
- HTTP dictionary hot reload
- Elasticsearch plugin packages
- OpenSearch plugin packages
- Tokenizer and analyzer pairs
Use cases
- Chinese full-text search indexing
- Phrase versus term query tuning
- Live-updated domain vocabulary lists