Search with query and Open the window.