   [tile-spec]
   (log/debugf "appending additional tags to tile-spec")
   (let [ubid-tags (str/split (:ubid tile-spec) #"/|_")]
-    (log/tracef "====> for tile-spec: %s" tile-spec)
     (if (> (count ubid-tags) 1)
       (update tile-spec :tags conj ubid-tags)
       tile-spec)))

   "Converts a tile-spec to an index entry."
  [tile-spec]
  (log/debugf "converting tile-spec to index entry")
  (log/tracef "====> for tile-spec: %s" tile-spec)
  (str (json/write-str {"index" {"_retry_on_conflict" 3}}) "\n"
       (json/write-str tile-spec) "\n"))


  "Clears the tile-spec index"
  []
  (log/infof "clearing the tile-spec index")
  (log/spy :trace (es/clear! (get-in config [:search :index-url]))))

(defn search
  "Submits a query to the index.  Query should conform to elasticsearch
