 (comment
 
   (def db (get-in user/system [:apps :cubby :db]))
+
+  (create-index-or-update-mappings db)
+  (esi/get-mapping (:conn db) index-name type-name)
 
   (d/reset db)
 

  "The name of the index in elastic search."
  "cubby_cached_values")

(def string-type
  "The mapping type of saved string values"
  {:type "string"
   ;; Stored so we can retrieve the value

   ;; Do not index the field, otherwise strings are limited to 32KB. The theoretical max size for
   ;; a field that is not indexed is 2GB.
   :index "no"})

(def indexed-string-type
  "A string that is indexed but not analyzed."
  {:type "string"
   ;; Stored so we can retrieve the value
   :store "yes"
   :index "not_analyzed"})

(def type-name
  "The name of the mapping type within the cubby elasticsearch index."
