Pull out search query

Make the search query it's own variable so it's more easily configurable.