 (defn stop
   "stops embedded ES node" 
   []
+  (info "Stoping local elasticsearch node")
   (.close @ES) 
   (reset! ES nil))
-
-;; (start)
-;; (stop)
-;; (idx/create "myapp2_development" )
-;; (doc/put "myapp2_development" "person"  "10" {:username "ronen"})
-;; (doc/get "myapp2_development" "person" "10")

  (:import 
    [org.elasticsearch.node NodeBuilder])
  (:require 
    [celestial.common :refer (get!)]
    [clojurewerkz.elastisch.native.conversion :as cnv]
    [clojurewerkz.elastisch.native :as es]
    ))

(def ES (atom nil))


(defn start
  "launch en embedded ES node" 
  []
  (info "Starting local elasticsearch node")
  (reset! ES (es/start-local-node (build-local-node (settings)))))

(defn connect []
