Simplifies search query template