def ft_add record:
      fields = []
      @fields.each { |field| fields.push(field, record.send(field)) }
      REDI_SEARCH.call('FT.ADD', @index_name, record.to_global_id.to_s, @score,
        'REPLACE',
        'FIELDS', fields
        #'NOSAVE', 'PAYLOAD', 'LANGUAGE'
      )
    rescue Exception => e
      Rails.logger.error e if defined? Rails
      return e.message
    end
def ft_add record:
      fields = []
      @fields.each { |field| fields.push(field, record.send(field)) }
      REDI_SEARCH.call('FT.ADD', @index_name, record.to_global_id.to_s, @score,
        'REPLACE',
        'FIELDS', fields
        
      )
    rescue Exception => e
      Rails.logger.error e if defined? Rails
      return e.message
    end
def ft_add record : fields = [ ] @fields . each { | field | fields . push ( field , record . send ( field ) ) } REDI_SEARCH . call ( 'FT.ADD' , @index_name , record . to_global_id . to_s , @score , 'REPLACE' , 'FIELDS' , fields #'NOSAVE', 'PAYLOAD', 'LANGUAGE' ) rescue Exception => e Rails . logger . error e if defined? Rails return e . message end
index specific record

 @param record [Object] Object to index
 @return [String]
index specific record