Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
398 views
in Technique[技术] by (71.8m points)

marklogic - Why are Attributes in Nested Enities not evaluated when matching?

we are using Marklogic DataHub QuickStart Version 5.1.0 for Mastering customer data into a Golden Record. The Entity Structure where we have problems with looks like this

{
  "envelope": {
    "instance": {
      "customer": {
        "lastname": "Examplelast",
        "firstname": "Examplefirst",
        "phonenumbers": [
          {
            "phone": {
              "number": "1234567890",
              "ismobil": "true"
            }
          },
          {
            "phone": {
              "number": "9876543210",
              "ismobil": "false"
            }
          }
        ]
      }
    }
  }
}

The Match Options definition looks like this

{
  "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"
        }
      ]
    }
  }
}

The first problem is that we can′not select the "number" attributes from the Match Options (only "phonenumbers" can be selected. So we edit the flow file on system level, writing "phone.number" with the weight definition to the file (can not be edit via the UI afterwards). Starting the flow, we receive no error but also no match for the "phone.number" after the run.

Any ideas how to solve this topic? Many thanks Andreas

question from:https://stackoverflow.com/questions/65886078/why-are-attributes-in-nested-enities-not-evaluated-when-matching

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...