proper search query parser