query: fixed advanced query for search route