implemented GetSearchQuery metod