我正在尝试使用映射创建索引。
使用URL : localhost:9200/test3?pretty方法: PUT和with body
{
"mappings": {
"properties": {
"name": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
},
"sort_da": {
"type": "icu_collation_keyword",
"index": false,
"language": "da",
"country": "DK",
"variant": "@collation=phonebook"
},
"sort_de": {
"type": "icu_collation_keyword",
"index": false,
"language": "de",
"country": "DE",
"variant": "@collation=phonebook"
}
}
}
}}}
我得到了以下异常
"type": "mapper_parsing_exception",
"reason": "no handler for type [icu_collation_keyword] declared on field [sort_de]"发布于 2021-08-25 07:12:32
我假设你必须先安装ICU插件。
可以使用插件管理器安装此插件:
sudo bin/elasticsearch-plugin install analysis-icu
该插件必须安装在集群中的每个节点上,并且每个节点都必须在安装后重启。
请参阅https://www.elastic.co/guide/en/elasticsearch/plugins/current/analysis-icu.html
https://stackoverflow.com/questions/66758789
复制相似问题