Как подключиться к Bonsai ElasticSearch с помощью clojurewerkz / elastisch - PullRequest
0 голосов
/ 25 марта 2020

Я пытаюсь подключиться к Bonsai ElasticSearch, используя elastisch, вот так:


(let [
esr-conn (esr/connect "https://blahblah:moreblah@foobar.us-east-1.bonsaisearch.net:443")
      mapping-types {"person" {:properties {:username   {:type "string" :store "yes"}
                                            :first-name {:type "string" :store "yes"}
                                            :last-name  {:type "string"}
                                            :age        {:type "integer"}
                                            :title      {:type "string" :analyzer "snowball"}
                                            :planet     {:type "string"}
                                            :biography  {:type "string" :analyzer "snowball" :term_vector "with_positions_offsets"}}}}]

(prn "do this" (esi/create esr-conn "myapp2_development" :mappings mapping-types))
(prn "also do this" (esd/create esr-conn "myapp2_development" "person" doc)))
)

Но «do this» никогда не печатается, предлагая какую-то ошибку с esi / create. Когда я удаляю esi / create, он все равно должен работать, но я не получаю отпечаток «также сделай это». Что я делаю не так?

...