                            {:name "all-variable-revisions"
                             :settings variable-setting}]
                           :mapping variable-mapping}
+               :autocomplete {:indexes
+                              [{:name "autocomplete"
+                                :settings autocomplete-settings}]
+                              :mapping autocomplete-mapping}
                :service {:indexes
                          [{:name "services"
                            :settings service-setting}

  "Number of shards to use for the services index."
  {:default 5 :type Long})

(defconfig collections-index-alias
  "The alias to use for the collections index."
  {:default "collection_search_alias" :type String})

   :tag-key.lowercase (-> m/string-field-mapping m/stored m/doc-values)
   :description (m/not-indexed (m/stored m/string-field-mapping))
   :originator-id.lowercase (m/stored m/string-field-mapping)})

(defmapping autocomplete-mapping :autocomplete
  "Defines the elasticsearch mapping for storing autocomplete suggestions.
   These are the fields that will be stored in an Elasticsearch document."
  {:_id  {:path "concept-id"}}
  {:concept-id (-> m/string-field-mapping m/stored m/doc-values)
   :type (-> m/string-field-mapping m/string-field-mapping)
   :value {:type "string" :analyzer "autocomplete_analyzer"}})

(defmapping variable-mapping :variable
  "Defines the elasticsearch mapping for storing variables. These are the
