Is it possible to have two tokenizer/comparator for the same attribute?

Question

Is it possible to have two tokenizer/comparator for the same attribute? If it's possible, is it recommended?
Example
"rule": {
            "cleanse": [
              {
                "cleanseAdapter": "com.reltio.cleanse.impl.NameDictionaryCleanser",
                "mappings": [
                  {
                    "attribute": "configuration/entityTypes/Contact/attributes/FirstName",
                    "mandatory": false,
                    "allValues": false,
                    "cleanseAttribute": "configuration/entityTypes/Contact/attributes/FirstName"
                  }
                ]
              }
            ],
            "matchTokenClasses": {
              "mapping": [
                {
                  "attribute": "configuration/entityTypes/Contact/attributes/FirstName",
                  "class": "com.reltio.match.token.FuzzyTextAndNumberMatchToken"
                },
                {
                  "attribute": "configuration/entityTypes/Contact/attributes/FirstName",
                  "class": "com.reltio.match.token.ComplexPhoneticNameToken"
                }
              ]
            },
            "comparatorClasses": {
              "mapping": [
                {
                  "attribute": "configuration/entityTypes/Contact/attributes/FirstName",
                  "class": "com.reltio.match.comparator.DamerauLevenshteinDistance"
                },
                {
                  "attribute": "configuration/entityTypes/Contact/attributes/FirstName",
                  "class": "com.reltio.match.comparator.SoundexComparator"
                }
              ]
            },
            "and": {
              "exact": [
                "configuration/entityTypes/Contact/attributes/Email/attributes/Email"
              ],
              "fuzzy": [
                "configuration/entityTypes/Contact/attributes/FirstName"
              ]
            }
          }

 

Answer

One match token class per attribute is supported only

 

 

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.