modify search query to work with domains