                     concept-id
                     (t/in-millis (t/interval rev-datetime now))))
       (warn (format
-             "Cannot compute time from ingest to search visibility for [%s] with revision date [%s]."
-             concept-id
-             revision-date)))))
+              "Cannot compute time from ingest to search visibility for [%s] with revision date [%s]."
+              concept-id
+              revision-date)))))
 
 (defn- get-elastic-version-with-associations
   "Returns the elastic version of the concept and its associations"
   [context concept associations]
   (es/get-elastic-version
-   (-> concept
-       (assoc :tag-associations (:tag-associations associations))
-       (assoc :variable-associations (:variable-associations associations))
-       (assoc :service-associations (:service-associations associations)))))
+    (-> concept
+        (assoc :tag-associations (:tag-associations associations))
+        (assoc :variable-associations (:variable-associations associations))
+        (assoc :service-associations (:service-associations associations)))))
 
 (defmulti get-elastic-version
   "Returns the elastic version of the concept"

  [context concept]
  (let [tag-associations (meta-db/get-associations-for-collection context concept :tag-association)
        variable-associations (meta-db/get-associations-for-collection
                               context concept :variable-association)
        service-associations (meta-db/get-associations-for-collection
                              context concept :service-association)
        associations {:tag-associations tag-associations
                      :variable-associations variable-associations
                      :service-associations service-associations}]
    (get-elastic-version-with-associations
     context concept associations)))

(defmethod get-elastic-version :variable
  [context concept]

  ;; Get the variable associations as well.
  (let [batch (map (fn [concept]
                     (let [variable-associations (meta-db/get-associations-for-variable
                                                   context concept)]
                       (assoc concept :variable-associations variable-associations)))
                   batch)]
    (es/prepare-batch context (filter-expired-concepts batch) options)))
