All these assignments should be parameters to new.
```ruby
Search.new(
  catalog_id: all_catalogs_ids,
  language_by_id:= params[:lang_ids],
  ...
)
```