lib/redi_search_rails.rb
def ft_addhash redis_key:
      REDI_SEARCH.call('FT.ADDHASH', @index_name, redis_key, @score, 'REPLACE')
    rescue Exception => e
      Rails.logger.error e if defined? Rails
      return e.message
    end
def ft_addhash redis_key:
      REDI_SEARCH.call('FT.ADDHASH', @index_name, redis_key, @score, 'REPLACE')
    rescue Exception => e
      Rails.logger.error e if defined? Rails
      return e.message
    end
def ft_addhash redis_key : REDI_SEARCH . call ( 'FT.ADDHASH' , @index_name , redis_key , @score , 'REPLACE' ) rescue Exception => e Rails . logger . error e if defined? Rails return e . message end
index existing Hash

 @param record [string] key of existing HASH key in Redis that will hold the fields the index needs.
 @return [String]
index existing Hash