Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How does the unique matching work in tFuzzymatch component?

Hi all,

I am using the double metaphone method in tFuzzymatch component to compare a column from the main table with reference column from the lookup table. If the unique matching option is checked, the best matched result would be given in the final output. But   may I know how the "unique matching" actually work? Why does it pick the one as the best matched? What is the algorithm/criteria for comparison behind it? 

 

For  example:

(unique matching is unchecked)

Words_Main | VALUE | MATCHING

Oakland County Sheriff | AKLN | Oakland Academy,Oakland International Academy

 

(unique matching is checked)

Words_Main | VALUE | MATCHING

Oakland County Sheriff | AKLN | Oakland Academy

 

Why "Oakland Academy" is better than "Oakland International Academy"? 

 

Thank you very much!!

 

Labels (2)
1 Solution

Accepted Solutions
cterenzi
Specialist
Specialist

It looks like the code iterates over the list of values until it finds a match, and then stops.  So it returns the first match it finds and does not make any comparison between all possible matches to return the "best" match.

View solution in original post

4 Replies
cterenzi
Specialist
Specialist

It looks like the code iterates over the list of values until it finds a match, and then stops.  So it returns the first match it finds and does not make any comparison between all possible matches to return the "best" match.

Anonymous
Not applicable
Author

oh, so talend define the first match as the "best" one in tfuzzymatch? Is there anyway I can see the source code for this component? thanks
cterenzi
Specialist
Specialist

Drop the component in a job, configure it, then click on the code tab under the job area.
Anonymous
Not applicable
Author

Hello,

Next to the Designer tab there is a Code tab that lets you view the source code for the entire Job. Or else there is Code view next to the Outline that shows the generated code for the selected component.

Best regards

Sabrina