STConvert is analyzer that convert chinese characters between traditional and simplified.中文简繁體互相转换.
STConvert is analyzer that convert Chinese characters between Traditional and Simplified. It supports major versions of Elasticsearch and OpenSearch. Maintained and supported with ❤️ by INFINI Labs.
The plugin includes analyzer: stconvert,
tokenizer: stconvert,
token-filter: stconvert,
and char-filter: stconvert
Supported config:
convert_type: default s2t ,optional option:
s2t ,convert characters from Simple Chinese to Traditional Chineset2s ,convert characters from Traditional Chinese to Simple Chinesekeep_both:default false ,
delimiter:default ,
You can download the packaged plugins from here: https://release.infinilabs.com/,
or you can use the plugin cli to install the plugin like this:
For Elasticsearch
bin/elasticsearch-plugin install https://get.infini.cloud/elasticsearch/analysis-stconvert/8.4.1For OpenSearch
bin/opensearch-plugin install https://get.infini.cloud/opensearch/analysis-stconvert/2.12.0Tips: replace your own version number related to your elasticsearch or opensearch.
Mapping example:
…Analyze tests
GET stconvert/_analyze
{
"tokenizer" : "keyword",
"filter" : ["lowercase"],
"char_filter" : ["tsconvert"],
"text" : "国际國際"
}
Output:
{
"tokens": [
{
"token": "国际国际",
"start_offset": 0,
"end_offset": 4,
"type": "word",
"position": 0
}
]
}Normalizer usage
…Fell free to join the Discord server to discuss anything around this project:
Copyright ©️ INFINI Labs.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
No open issues yet, or sync has not completed.