title: Searchkick: Searching multiple specific fields in the same query
body: <p>i'm trying to make an advanced search in my rails app but i'm having some problems with empty params</p>
  
  <p>class Product&lt; ActiveRecord::Base
      searchkick</p>
  
  <p>when i fill the search and size fields everyting works, but if i leave size field blank nothing show up in the results...</p>
  
  <p>probably i'm doing something stupid</p>
  
  <p>i made it work with a bunch of IFs:</p>
  
  <pre><code>def index
  
  if params[:search].present?
    if params[:size].present?
      @products = Product.search params[:search], where: {size: params[:size]}
    else
      @products = Product.search params[:search]
    end      
  else
    if params[:size].present?
      @products = Product.search "*", where: {size: params[:size]}
    else
      @products = Product.search "*"
    end
  
  end
  </code></pre>
  
  <p>but probably thats not the best approuch, having in mind that i will search in at least 5 other fields...</p>
  
  <p>Search, Size, Brand, Color, Store.state, Price, Rating etc...</p>
  
  <p>sorry for my english, i hope you guys understand my question and get able to help me..</p>