search refactoring; remove incorrect domain name check