lib/redi_search_rails.rb
def ft_add_all
      @model.all.each {|record| ft_add(record: record) }
      ft_optimize
    rescue Exception => e
      Rails.logger.error e if defined? Rails
      return e.message
    end
def ft_add_all
      @model.all.each {|record| ft_add(record: record) }
      ft_optimize
    rescue Exception => e
      Rails.logger.error e if defined? Rails
      return e.message
    end
def ft_add_all @model . all . each { | record | ft_add ( record : record ) } ft_optimize rescue Exception => e Rails . logger . error e if defined? Rails return e . message end
index all records in specific model

 @return [String]
index all records in specific model