 (defn systems-for
   "grabs all the systems ids that this user can manipulate from ES"
   [username q from size]
+  (info "query for" (query-for username q))
   (query (query-for username q) :from from :size size))

(defn clear 
  "Creates systems index and type" 
  []
  (node/start-n-connect)
  (when (idx/exists? index)
    (info "Clearing index" index)
    (idx/delete index)))

  "Systems indexing/searching"
  (:refer-clojure :exclude [get])
  (:require 
    [clojure.set :refer (subset?)]
    [clojure.core.strint :refer (<<)] 
    [slingshot.slingshot :refer  [throw+]] 
    [es.node :as node]
