【发布时间】:2018-12-28 16:08:06
【问题描述】:
在我的开发环境中,我可以创建一个具有 属性 和 Alias 数据类型 的 Elasticsearch 索引。但是,在 AWS(Elasticsearch Service)中,当我尝试相同的操作时,它会失败。
我的开发 Elasticsearch 版本:6.4.2
AWS Elasticsearch 版本:6.3.1
我正在尝试使用 Elasticsearch 站点中的示例代码:https://www.elastic.co/guide/en/elasticsearch/reference/current/alias.html
PUT trips
{
"mappings": {
"_doc": {
"properties": {
"distance": {
"type": "long"
},
"route_length_miles": {
"type": "alias",
"path": "distance"
},
"transit_mode": {
"type": "keyword"
}
}
}
}
}
这是我得到的:
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "No handler for type [alias] declared on field [route_length_miles]"
}
],
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping [_doc]: No handler for type [alias] declared on field [route_length_miles]",
"caused_by": {
"type": "mapper_parsing_exception",
"reason": "No handler for type [alias] declared on field [route_length_miles]"
}
},
"status": 400
}
【问题讨论】:
标签: amazon-web-services elasticsearch