Fix rec_name search when domain value is a string

review1125003
(transplanted from b786cf31e330c8f3288aac9a328ae2f247a1c591)

--HG--
extra : transplant_source : %B7%86%CF1%E30%C8%F3%28%8A%AC%9A2%8A%E2%F2G%A1%C5%91