Accelerate the Value of Data

Compare Strings with Multi Operand

This API allows you to compare two strings with the multi operand in the request body.

You can use this API to compare value sets for strings when the multi operator is used to specify multiple values for the compared objects.

You must have the MDM.Config.BusinessModel resource assigned with the READ privilege.

Request

POST /reltio/tools/matching/compare/multi

Body

{
  "comparatorClasses": [
    {
      "attribute": "configuration/entityTypes/Individual/attributes/VirtualName",
      "class": "com.reltio.match.comparator.CrossMultiComparator"
    },
    {
      "attribute": "configuration/entityTypes/Individual/attributes/FirstName",
      "class": "com.reltio.match.comparator.BasicStringComparator",
      "parameters": []
    },
    {
      "attribute": "configuration/entityTypes/Individual/attributes/LastName",
      "class": "com.reltio.match.comparator.BasicStringComparator"
    }
  ],
  "multi": [
    {
      "uri": "configuration/entityTypes/Individual/attributes/VirtualName",
      "attributes": [
        "configuration/entityTypes/Individual/attributes/FirstName",
        "configuration/entityTypes/Individual/attributes/LastName"
      ]
    }
  ],
  "first": {
    "configuration/entityTypes/Individual/attributes/FirstName": "William",
    "configuration/entityTypes/Individual/attributes/LastName": "Smith"
  },
  "second": {
    "configuration/entityTypes/Individual/attributes/FirstName": "Smith",
    "configuration/entityTypes/Individual/attributes/LastName": "William"
  }
}

Body - When the geo version of multi operand is used.

{
  "comparatorClasses": [
    {
      "attribute": "configuration/entityTypes/Individual/attributes/Geo",
      "class": "com.reltio.match.comparator.ProximateGeoComparator",
      "parameters": [
        {
          "parameter": "distance_miles",
          "value": "0.4"
        }
      ]
    }
  ],
  "multi": [
    {
      "uri": "configuration/entityTypes/Individual/attributes/Geo",
      "attributes": [
        "configuration/entityTypes/Individual/attributes/Latitude",
        "configuration/entityTypes/Individual/attributes/Longitude"
      ]
    }
  ],
  "first": {
    "configuration/entityTypes/Individual/attributes/Latitude": 11,
    "configuration/entityTypes/Individual/attributes/Longitude": 21
  },
  "second": {
    "configuration/entityTypes/Individual/attributes/Latitude": 12,
    "configuration/entityTypes/Individual/attributes/Longitude": 22
  }
}

Response

{
    "equals": true,
    "relevance": 1.0
}
Note: The output contains the relevance score.