Master Index Match Engine Reference

compareFields

Description

The compareFields method contains all the comparison logic needed to compare two field values and calculate a matching weight that shows how similar the values are.

Syntax

double compareFields(String recordA, String recordB, Map context)

Parameters

Parameter 

Type 

Description 

recordA 

String 

A field value from the record against which the reference record is being compared. 

recordB 

String 

A field value from the reference record. 

context 

Map 

A set of arguments passed to the comparator. 

Return Value

A number between zero and one that indicates how closely two field values match.

Throws

MatchComparatorException