Accelerate the Value of Data

Compare Strings

This API allows you to compare two strings specified in the request body.

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

Request

POST /reltio/tools/matching/compare

Body

{
  "first": "string 1",
  "second": "string 2",
  "comparatorClass": {
    "parameters": [
		{
		  "parameter": "useStemmer",
		  "value": "true"
		},
		{
		  "parameter": "useSoundex",
		  "value": "true"
		},
		{
		  "parameter": "threshold",
		  "value": "80%"
		}
	],
	"class": "com.reltio.match.comparator.DistinctWordsComparator"
  },
  "fuzzy": true
}

Response

{
  "equals": true,
  "relevance": 0.9,
  "fuzzy": true,
  "first": "string 1",
  "second": "string 2"
}
Note: The output contains the relevance score.