I am getting wrong results when I execute the following Select Query in AMDP Procedure. The partner repeats twice with one address number which is not at all related to the value passed in the WHERE condition.
SELECT score( ) AS score,
partner,
rltyp,
addrnumber,
name,
postalcode,
street,
street4,
country
FROM zcdsbpaddr
WHERE
CONTAINS ( zcdsbpaddr.name, :im_name1, FUZZY(0.8, 'similarCalculationMode=compare, textSearch=compare, bestMatchingTokenWeight=0.3' ) ) AND
CONTAINS ( zcdsbpaddr.postalcode, :im_post_code1, FUZZY(0.8) ) AND
CONTAINS ( ( zcdsbpaddr.street, zcdsbpaddr.street4 ), :im_street, FUZZY(0.7) ) AND
( :im_country = '' OR zcdsbpaddr.country = :im_country )
ORDER BY score( ) DESC;
It would be great if someone could help.