Liking cljdoc? Tell your friends :D

es-utils


actual-index-nameclj

(actual-index-name es-host index-name)

as-input-streamclj

(as-input-stream index-config)

Given a path returns an input-stream

Given a path returns an input-stream
raw docstring

configure-indexclj

(configure-index es-host {:keys [alias conf data] :as index-conf})

confs->host-indexclj

(confs->host-index default-es-host es-index-confs)

create-indexclj

(create-index es-host index-name index-config)

data->index-nameclj

(data->index-name data-file)

delete-all-docsclj

(delete-all-docs es-host es-index-confs)

delete-docs!clj

(delete-docs! es-host indices)

Params:

Params:
- es-host: e.g. http://127.0.0.1:9200
- indices: a colection of index names e.g. ["index-1" "index-2"]
raw docstring

es-ready?clj

(es-ready? es-host)

exists?clj

(exists? es-host index-name)

export-docs-for-bulk-via-httpclj

(export-docs-for-bulk-via-http es-host index-name query out-file)

Example: (export-docs-for-bulk "http://127.0.0.1:9200" "index" {:query {:match_all {}} :size 1000} "output.json")

Example: (export-docs-for-bulk "http://127.0.0.1:9200" "index" {:query {:match_all {}} :size 1000} "output.json")
raw docstring

import-test-data-to-esclj

(import-test-data-to-es es-host es-index-name input-file)

load-test-dataclj

(load-test-data env default-es-host index-confs)

prepare-indicesclj

(prepare-indices env es-host es-index-confs)

put-aliasclj

(put-alias es-host index-name alias)

service-ready?clj

(service-ready? endpoint)
(service-ready? endpoint service-name)
(service-ready? endpoint service-name timeout-seconds)
(service-ready? endpoint service-name timeout-seconds acceptable-resp?)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close