File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111* bump math.combinatorics to 0.3.2
1212
1313### Fixed
14-
14+ * ES conf can be created without a document type
1515
1616## [ 0.7.32] - 2025-10-24
1717### Changed
Original file line number Diff line number Diff line change 11(ns datasplash.es
22 (:require
33 [charred.api :as charred]
4+ [clojure.string :as str]
45 [datasplash.core :as ds])
56 (:import
67 (datasplash.fns ExtractKeyFn)
2425(defn- es-config
2526 " Creates a new Elasticsearch connection configuration."
2627 [hosts index type {:keys [username password keystore-password keystore-path]}]
27- (let [hosts-array (into-array String hosts)]
28- (cond-> (ElasticsearchIO$ConnectionConfiguration/create hosts-array index type)
28+ (let [hosts-array (into-array String hosts)
29+ conf (if (str/blank? type)
30+ (ElasticsearchIO$ConnectionConfiguration/create hosts-array index)
31+ (ElasticsearchIO$ConnectionConfiguration/create hosts-array index type))]
32+ (cond-> conf
2933 username (.withUsername username)
3034 password (.withPassword password)
3135 keystore-password (.withKeystorePassword keystore-password)
You can’t perform that action at this time.
0 commit comments