我刚开始使用Elasticsearch映射 . 在我开始处理数据之前,我的数据表现不像预期的那样 . Elasticsearch实例是1.7.5版
我注意到在映射中的 copy_to
中使用相同的字段似乎有两个级别 . Elasticsearch启动正常,数据被推送到它,没有任何错误被抛出 .
从下面的代码片段中,我想将我的 record_type.FOO.date.earliest|latest
复制到我的记录的顶级以进行排序,但它看起来像 ownership.date.earliest|latest
是冲突的 . 因此,看起来我的 record_type
字段未被复制到记录中的其他字段 . 它是否正确?
..."ownership":
{
"properties":
{
"date":
{
"properties":
{
"earliest":
{
"type": "integer",
"include_in_all": false,
"copy_to": "date.earliest"
},
"latest":
{
"type": "integer",
"include_in_all": false,
"copy_to": "date.latest"
}
}
}
}
},
"record_type":
{
"properties":
{
"archive":
{
"properties":
{
"date":
{
"properties":
{
"earliest":
{
"type": "integer",
"include_in_all": false,
"copy_to": "date.earliest"
},
"latest":
{
"type": "integer",
"include_in_all": false,
"copy_to": "date.latest"
}
}
}
}
},
"public_record":
{
"properties":
{
"date":
{
"properties":
{
"earliest":
{
"type": "integer",
"include_in_all": false,
"copy_to": "date.earliest"
},
"latest":
{
"type": "integer",
"include_in_all": false,
"copy_to": "date.latest"
}
}
}
}
},...
简而言之
如果我在映射的不同级别有两个 copy_to
实例,这会产生一个无声冲突,还是我的问题出现在其他地方?