            {(keyword index-name) (gen-valid-index-name prefix-id index-name)})))
 
 (defn prune-index-set
-  "Returns the index set with only the id, name, and a map of concept types to the index name map."
+  "Returns the index set with only the id, name, and a map of concept types to
+  the index name map."
   [index-set]
   (let [prefix (:id index-set)]
     {:id (:id index-set)

    (index-requested-index-set context index-set)))

(defn delete-index-set
  "Delete all indices having 'id_' as the prefix in the elastic, followed by index-set doc delete"
  [context index-set-id]
  (let [index-names (get-index-names (get-index-set context index-set-id))
        {:keys [index-name mapping]} es-config/idx-cfg-for-index-sets

    (es/save-document-in-elastic context index-name idx-mapping-type doc-id es-doc)))

(defn create-index-set
  "Create indices listed in index-set. Rollback occurs if indices creation or
  index-set doc indexing fails."
  [context index-set]
  (validate-requested-index-set context index-set false)
  (let [index-names (get-index-names index-set)
