You could consider refactoring this class to be a bit more model like. You'd get a few benefits:

1. You could easily re-populate the search form on your results page by using `form_for`, so the user can alter their original search rather than starting over.
2. You could use validations to make sure that the query and category are provided, and simplify your controller code in the process.