fix up config in siteSearch
some more refactor for siteSearch