made SearchQuery class