当我在 AMDP 过程中执行以下选择查询时,我得到了错误的结果。伙伴使用一个地址编号重复两次,该地址编号与 WHERE 条件中传递的值完全无关。
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;
如果有人可以提供帮助,那就太好了。