molten-trunk/molten5_withgrid/vendor/plugins/acts_as_ferret/lib/class_methods.rb
# Returns the total number of hits for the given query 
# To count the results of a multi_search query, specify an array of 
# class names with the :models option.
Returns the total number of hits for the given query
To count the results of a multi_search query, specify an array of
class names with the :models option.
Returns the total number of hits for the given query To count the results of a multi_search query specify an array of class names with the : models option .
def total_hits(q, options={})
      if models = options[:models]
        options[:models] = add_self_to_model_list_if_necessary(models).map(&:to_s)
      end
      aaf_index.total_hits(q, options)
    end
def total_hits ( q , options = { } ) if models = options [ :models ] options [ :models ] = add_self_to_model_list_if_necessary ( models ) . map ( & :to_s ) end aaf_index . total_hits ( q , options ) end
Returns the total number of hits for the given query
To count the results of a multi_search query, specify an array of
class names with the :models option.
Returns the total number of hits for the given query To count the results of a multi_search query specify an array of class names with the : models option .
q
options