Fixed queries in search controller