lib/redi_search_rails.rb
def ft_search_count(args)
      ft_search(args).first
    rescue Exception => e
      Rails.logger.error e if defined? Rails
      return e.message
    end
# number of records found for keywords
#
# @param keyword [Hash]  keyword that gets passed to ft_search
# @return [Integer]   number of results matching the search
number of records found for keywords
number of records found for keywords
def ft_search_count(args)
      ft_search(args).first
    rescue Exception => e
      Rails.logger.error e if defined? Rails
      return e.message
    end
def ft_search_count ( args ) ft_search ( args ) . first rescue Exception => e Rails . logger . error e if defined? Rails return e . message end
number of records found for keywords
number of records found for keywords
number of results matching the search
number of results matching the search
Integer
args
keyword
keyword that gets passed to ft_search
keyword that gets passed to ft_search