lib/mebla/result_set.rb in mebla-1.0.0.rc2 vs lib/mebla/result_set.rb in mebla-1.0.0

- old
+ new

@@ -1,6 +1,6 @@ -# @private +# A wrapper for slingshot elastic-search adapter for Mongoid module Mebla # Represents a set of search results class ResultSet include Enumerable attr_reader :entries, :facets, :time, :total @@ -12,11 +12,11 @@ # Creates a new result set from an elasticsearch response hash # @param response def initialize(response) # Keep the query time @time = response['took'] - # Keep the facets - @facets = response['facets'] + # Keep the facets + @facets = response['facets'] # Keep the query total to check against the count @total = response['hits']['total'] # Be efficient only query the database once model_ids = {} \ No newline at end of file