     (fallback-cache/create-fallback-cache
 
       ;; Consistent cache is required so that if we have multiple instances of the indexer we'll
-      ;; have only a single indexer refreshing it's cache.
+      ;; have only a single indexer refreshing its cache.
       (consistent-cache/create-consistent-cache
        {:hash-timeout-seconds (coll-gran-agg-cache-consistent-timeout-seconds)})
       (redis-cache/create-redis-cache))))

  "Searches across all the granule indexes to aggregate by collection. Returns a map of collection
   concept id to collection information. The collection will only be in the map if it has granules."
  [context]
  (-> (esd/search (es/context->conn context)
                  "1_*" ;; Searching all indexes
                  ["granule"] ;; With the granule type.
                  {:query (esq/match-all)
                   :size 0
                   :aggs collection-aggregations})
      parse-aggregations))

(defn- fetch-coll-gran-aggregates-updated-in-last-n

   [clj-time.core :as t]
   [clj-time.format :as f]
   [clojurewerkz.elastisch.query :as esq]
   [cmr.common-app.services.search.datetime-helper :as datetime-helper]
   [cmr.common.cache :as c]
   [cmr.common.cache.fallback-cache :as fallback-cache]
