Set query as json string in SearchQuery model.
Overwrite query= setter method and uses to_json in the value,
which expects a hash from the form.
Validate the presence of query in the SearchQuery model.