advanced search preserving search query