take search and hash