# File lib/thinking_sphinx/search.rb, line 229
    def total_pages
      populate
      return 0 if @results[:total].nil?
      
      @total_pages ||= (@results[:total] / per_page.to_f).ceil
    end