gpt4 book ai didi

elasticsearch - mapper_parsing_exception | Elasticsearch |全局序号

转载 作者:行者123 更新时间:2023-12-03 01:01:08 24 4
gpt4 key购买 nike

我们试图在基数较低的字符串列之一上强制执行全局序数,以促进聚合。

以下是索引说明

{
"recharge_olap": {
"mappings": {
"recharge_olap": {
"_all": {
"enabled": true
},
"dynamic_templates": [
{
"string_fields": {
"mapping": {
"index": "not_analyzed",
"omit_norms": true,
"type": "string"
},
"match": "*",
"match_mapping_type": "string"
}
}
],
"properties": {
"@version": {
"type": "string",
"index": "not_analyzed"
},
"product_brand_name": {
"type": "string",
"index": "not_analyzed"
},
"vertical_name": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
}

当我们尝试为product_brand_name进行全局序数映射时,出现以下错误?是否有任何可用的文档,因为我试图找到但没有太多帮助。
PUT /recharge_olap/_mapping/recharge_olap
{
"product_brand_name": {
"type": "string",
"doc_values": true,
"fielddata": {
"loading" : "eager_global_ordinals"
}
}
}

以下是响应。
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters: [product_brand_name : {type=string, fielddata={loading=eager_global_ordinals}}]"
}
],
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters: [product_brand_name : {type=string, fielddata={loading=eager_global_ordinals}}]"
},
"status": 400
}

最佳答案

我认为正确的命令是:

PUT /recharge_olap/_mapping/recharge_olap
{
"properties": {
"product_brand_name": {
"type": "string",
"index": "not_analyzed",
"doc_values": true,
"fielddata": {
"loading": "eager_global_ordinals"
}
}
}
}

关于elasticsearch - mapper_parsing_exception | Elasticsearch |全局序号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37188145/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com