我正在使用marklogic Smart Mastering框架。我已经从https://github.com/marklogic-community/smart-mastering-core
下载了核心项目我已经构建了触发器项目,并进行了一些自定义,例如删除了数据负载流。 。我还在触发器项目 src / main / entity-config 中添加了一个 employee-entity-options.json
{
"options": {
"propertyDefs": {
"property": [
{ "namespace": "", "localname": "EmployeeID", "name": "empID" },
{ "namespace": "", "localname": "EmployeeFirstName", "name": "employee-first-name" },
{ "namespace": "", "localname": "EmployeeLastName", "name": "employee-last-name"},
{ "namespace": "", "localname": "Address", "name": "addr" },
{ "namespace": "", "localname": "LocationCity", "name": "city" },
{ "namespace": "", "localname": "LocationState", "name": "state" },
{ "namespace": "", "localname": "LocationPostalCode", "name": "zip" }
]
},
"collections": {
"content": [ "employee-content-collection" ]
},
"scoring": {
"add": [
{ "propertyName": "employee-last-name", "weight": "10" },
{ "propertyName": "employee-first-name", "weight": "10" },
{ "propertyName": "addr", "weight": "10" },
{ "propertyName": "city", "weight": "10" },
{ "propertyName": "state", "weight": "10" },
{ "propertyName": "zip", "weight": "10" },
{ "propertyName": "empID", "weight": "6" }
]
},
"thresholds": {
"threshold": [
{
"above": "85",
"label": "Definitive Match",
"action": "merge"
}
]
}
}
}
我已经通过部署示例开始了。但是从文档中,我无法确定如何调用rest api来匹配两个文档。我正在跟踪此链接https://marklogic-community.github.io/smart-mastering-core/docs/rest/,并打算使用 sm-match-options 。
预先感谢 Debashis