Added magic getSearchQuery