title: how to use postgresql condition with solr sunspot rails
body: <p>I have a list of posts with status which means</p>
  
  <pre><code>status 1 - active
  status 0 - removed
  status 2 - pending
  </code></pre>
  
  <p>My solr seearch in index everything so if I search It is showing all the posts irrespective of the status code. I need only posts with <code>status 1</code></p>
  
  <p>I tried something like this</p>
  
  <pre><code>@search = Post.where(status: 1).search do
        fulltext params[:search] do
          minimum_match 1
        end
        paginate page: params[:page], per_page: 15
      end
      @posts = @search.results
      respond_to do |format|
        format.json { render nothing: true }
        format.html
      end
  </code></pre>
  
  <p>How can I do this. Can anyone help.</p>