module ActiveFedora::Calculations

Public Instance Methods

count(*args) click to toggle source

Get a count of the number of objects from solr Takes :conditions as an argument

# File lib/active_fedora/relation/calculations.rb, line 5
def count(*args)
  return apply_finder_options(args.first).count if args.any?
  opts = {}
  opts[:rows] = limit_value if limit_value
  opts[:sort] = order_values if order_values

  SolrService.count(create_query(where_values))
end