 (ns brainbot.nozzle.esconnect
+  "this namespace provides functionality to connect with the
+elasticsearch backend. the import_file and update_directory
+subcommands of the esconnect worker types are implemented here"
   (:require [clojure.pprint :refer [pprint]])
   (:require [clojure.string :as string])
   (:require [clojure.tools.logging :as logging])



(defn ensure-index-and-mappings
  [index-name]
  (if (esi/exists? index-name)
    (doseq [[doctype mapping] mapping-types]



(defn es-recursive-delete
  "recursively delete directory 'parent' from index 'index-name'"
  [index-name parent]
  (let [with-slash (misc/ensure-endswith-slash parent)]
    (esd/delete-by-query-across-all-types
