         ;; when results is nil, hits is 0
         results (or results {:hits 0 :items []})
         total-took (- (System/currentTimeMillis) start-time)
-        ;; construt the response results string
+        ;; construct the response results string
         results-str (common-search/search-results->response
                      context
                      ;; pass in a fake query to get the desired response format

  "Executes elasticsearch searches to find collections that have deleted revisions.
   Returns a list of concept-ids of the collections."
  [context params]
  ;;1/ Find all collection revisions that are deleted satisfy the original search params
  (let [query (make-concepts-query context :collection params)
        condition (gc/and-conds
                   [(:condition query)

                                  #(apply max (map :revision-id %))
                                  (group-by :concept-id (:items results)))
          highest-revisions (filter
                             (fn [coll]
                               ((set highest-coll-revisions)
                                [(:concept-id coll) (:revision-id coll)]))
                             (:items results))]
      (-> results
          (assoc :items highest-revisions)
