我们正在使用 Marklogic DataHub 快速入门版本 5.1.0 将客户数据掌握到黄金记录中。我们遇到问题的实体结构如下所示
{
"envelope": {
"instance": {
"customer": {
"lastname": "Examplelast",
"firstname": "Examplefirst",
"phonenumbers": [
{
"phone": {
"number": "1234567890",
"ismobil": "true"
}
},
{
"phone": {
"number": "9876543210",
"ismobil": "false"
}
}
]
}
}
}
}
匹配选项定义如下所示
{
"matchOptions": {
"propertyDefs": {
"property": [
{
"localname": "lastname",
"name": "lastname"
},
{
"localname": "firstname",
"name": "firstname"
},
{
"localname": "phone.number",
"name": "phone.number"
}
]
},
"scoring": {
"add": [
{
"propertyName": "lastname",
"weight": "5"
},
{
"propertyName": "firstname",
"weight": "5"
},
{
"propertyName": "phone.number",
"weight": "25"
}
]
}
}
}
第一个问题是我们不能从匹配选项中选择“数字”属性(只能选择“电话号码”。所以我们在系统级别编辑流文件,将“电话号码”与权重定义写入文件(之后无法通过 UI 编辑)。启动流程,我们没有收到错误,但运行后也没有匹配“phone.number”。
任何想法如何解决这个话题?非常感谢安德烈亚斯