Liking cljdoc? Tell your friends :D

ductile.index


cat-indicesclj

(cat-indices {:keys [uri request-fn] :as conn})

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn] Returns: (s/maybe CatIndices)

perform a _cat/indices request

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn]
Returns: (s/maybe CatIndices)

perform a _cat/indices request
sourceraw docstring

close!clj

(close! {:keys [uri request-fn] :as conn} index-name)

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn index-name :- s/Str]

close an index

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn index-name :- s/Str]

close an index
sourceraw docstring

coerceclj

(coerce st)
source

create!clj

(create! {:keys [uri request-fn] :as conn} index-name settings)

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn index-name :- s/Str settings :- s/Any]

create an index

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn index-name :- s/Str settings :- s/Any]

create an index
sourceraw docstring

create-data-stream!clj

(create-data-stream! {:keys [uri version request-fn] :as conn} data-stream-name)

Inputs: [{:keys [uri version request-fn], :as conn} :- ESConn data-stream-name :- s/Str]

Inputs: [{:keys [uri version request-fn], :as conn} :- ESConn data-stream-name :- s/Str]
sourceraw docstring

create-index-template!clj

(create-index-template! {:keys [uri request-fn version] :as conn}
                        template-name
                        template)

Inputs: [{:keys [uri request-fn version], :as conn} :- ESConn template-name :- s/Str template]

create an index template, update if already exists

Inputs: [{:keys [uri request-fn version], :as conn} :- ESConn template-name :- s/Str template]

create an index template, update if already exists
sourceraw docstring

create-policy!clj

(create-policy! {:keys [uri version request-fn] :as conn} policy-name policy)

Inputs: [{:keys [uri version request-fn], :as conn} :- ESConn policy-name :- s/Str policy :- Policy]

Inputs: [{:keys [uri version request-fn], :as conn} :- ESConn policy-name :- s/Str policy :- Policy]
sourceraw docstring

create-template!clj

(create-template! conn template-name index-config)
(create-template! {:keys [uri request-fn version] :as conn}
                  template-name
                  index-config
                  index-patterns)

Inputs: ([{:keys [uri request-fn version], :as conn} :- ESConn template-name :- s/Str index-config index-patterns :- [s/Str]] [conn :- ESConn template-name :- s/Str index-config])

create an index template, update if already exists

Inputs: ([{:keys [uri request-fn version], :as conn} :- ESConn template-name :- s/Str index-config index-patterns :- [s/Str]] [conn :- ESConn template-name :- s/Str index-config])

create an index template, update if already exists
sourceraw docstring

data-stream-uriclj

(data-stream-uri uri data-stream-name)

Inputs: [uri :- s/Str data-stream-name :- s/Str]

make a datastral uri from a host, and a data stream name

Inputs: [uri :- s/Str data-stream-name :- s/Str]

make a datastral uri from a host, and a data stream name
sourceraw docstring

deep-mergeclj

(deep-merge m1 m2)
source

delete!clj

(delete! {:keys [uri request-fn] :as conn} index-wildcard)

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn index-wildcard :- s/Str]

delete indexes using a wildcard

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn index-wildcard :- s/Str]

delete indexes using a wildcard
sourceraw docstring

delete-data-stream!clj

(delete-data-stream! {:keys [uri version request-fn] :as conn} data-stream-name)

Inputs: [{:keys [uri version request-fn], :as conn} :- ESConn data-stream-name :- s/Str]

Inputs: [{:keys [uri version request-fn], :as conn} :- ESConn data-stream-name :- s/Str]
sourceraw docstring

delete-index-template!clj

(delete-index-template! {:keys [uri request-fn version] :as conn} index-name)

Inputs: [{:keys [uri request-fn version], :as conn} :- ESConn index-name :- s/Str]

delete a template

Inputs: [{:keys [uri request-fn version], :as conn} :- ESConn index-name :- s/Str]

delete a template
sourceraw docstring

delete-policy!clj

(delete-policy! {:keys [uri version request-fn] :as conn} policy-name)

Inputs: [{:keys [uri version request-fn], :as conn} :- ESConn policy-name :- s/Str]

Inputs: [{:keys [uri version request-fn], :as conn} :- ESConn policy-name :- s/Str]
sourceraw docstring

delete-template!clj

(delete-template! {:keys [uri request-fn] :as conn} index-name)

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn index-name :- s/Str]

delete a template

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn index-name :- s/Str]

delete a template
sourceraw docstring

getclj

(get {:keys [uri request-fn] :as conn} index-name)

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn index-name :- s/Str]

get an index

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn index-name :- s/Str]

get an index
sourceraw docstring

get-data-streamclj

(get-data-stream {:keys [uri version request-fn] :as conn} data-stream-name)

Inputs: [{:keys [uri version request-fn], :as conn} :- ESConn data-stream-name :- s/Str]

Inputs: [{:keys [uri version request-fn], :as conn} :- ESConn data-stream-name :- s/Str]
sourceraw docstring

get-index-templateclj

(get-index-template {:keys [uri request-fn version] :as conn} index-name)

Inputs: [{:keys [uri request-fn version], :as conn} :- ESConn index-name :- s/Str]

get an index template

Inputs: [{:keys [uri request-fn version], :as conn} :- ESConn index-name :- s/Str]

get an index template
sourceraw docstring

get-policyclj

(get-policy {:keys [uri version request-fn] :as conn} policy-name)

Inputs: [{:keys [uri version request-fn], :as conn} :- ESConn policy-name :- s/Str]

Inputs: [{:keys [uri version request-fn], :as conn} :- ESConn policy-name :- s/Str]
sourceraw docstring

get-settingsclj

(get-settings conn)
(get-settings {:keys [uri request-fn] :as conn} index)

Inputs: ([conn :- ESConn] [{:keys [uri request-fn], :as conn} :- ESConn index :- s/Str]) Returns: ESSettings

Extract settings of an index from ES cluster. If explicit index is not provided - uses "_all" as a target. Result is a hash map of index -> settings, including defaults.

Inputs: ([conn :- ESConn] [{:keys [uri request-fn], :as conn} :- ESConn index :- s/Str])
Returns: ESSettings

Extract settings of an `index` from ES cluster. If explicit `index` is not provided - uses `"_all"` as a target.
 Result is a hash map of `index` -> `settings`, including defaults.
sourceraw docstring

get-templateclj

(get-template {:keys [uri request-fn] :as conn} index-name)

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn index-name :- s/Str]

get an index template

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn index-name :- s/Str]

get an index template
sourceraw docstring

index-exists?clj

(index-exists? {:keys [uri request-fn] :as conn} index-name)

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn index-name :- s/Str] Returns: s/Bool

check if the supplied ES index exists

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn index-name :- s/Str]
Returns: s/Bool

check if the supplied ES index exists
sourceraw docstring

index-template-uriclj

(index-template-uri uri template-name)

Inputs: [uri :- s/Str template-name :- s/Str] Returns: s/Str

make an index template uri from a host and a template name

Inputs: [uri :- s/Str template-name :- s/Str]
Returns: s/Str

make an index template uri from a host and a template name
sourceraw docstring

index-uriclj

(index-uri uri index-name)

Inputs: [uri :- s/Str index-name :- s/Str] Returns: s/Str

make an index uri from a host and an index name

Inputs: [uri :- s/Str index-name :- s/Str]
Returns: s/Str

make an index uri from a host and an index name
sourceraw docstring

merge-defaultsclj

(merge-defaults settings)
source

open!clj

(open! {:keys [uri request-fn] :as conn} index-name)

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn index-name :- s/Str]

open an index

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn index-name :- s/Str]

open an index
sourceraw docstring

policy-uriclj

(policy-uri uri policy-name)

Inputs: [uri :- s/Str policy-name :- s/Str]

make a policy uri from a host, and a policy name

Inputs: [uri :- s/Str policy-name :- s/Str]

make a policy uri from a host, and a policy name
sourceraw docstring

refresh!clj

(refresh! es-conn)
(refresh! {:keys [uri request-fn] :as conn} index-name)

Inputs: ([es-conn] [{:keys [uri request-fn], :as conn} :- ESConn index-name :- (s/maybe s/Str)])

refresh an index

Inputs: ([es-conn] [{:keys [uri request-fn], :as conn} :- ESConn index-name :- (s/maybe s/Str)])

refresh an index
sourceraw docstring

refresh-uriclj

(refresh-uri uri index-name)

Inputs: [uri :- s/Str index-name :- (s/maybe s/Str)] Returns: s/Str

make a refresh uri from a host, and optionally an index name

Inputs: [uri :- s/Str index-name :- (s/maybe s/Str)]
Returns: s/Str

make a refresh uri from a host, and optionally an index name
sourceraw docstring

rollover!clj

(rollover! es-conn alias conditions)
(rollover! {:keys [uri request-fn] :as conn}
           alias
           conditions
           {:keys [dry_run new-index-settings new-index-name]})

Inputs: ([es-conn alias conditions] [{:keys [uri request-fn], :as conn} :- ESConn alias :- s/Str conditions :- RolloverConditions {:keys [dry_run new-index-settings new-index-name]} :- (st/open-schema (st/optional-keys {:new-index-settings (s/pred map?), :new-index-name (s/maybe s/Str), :dry_run s/Bool}))])

run a rollover query on an alias with given conditions

Inputs: ([es-conn alias conditions] [{:keys [uri request-fn], :as conn} :- ESConn alias :- s/Str conditions :- RolloverConditions {:keys [dry_run new-index-settings new-index-name]} :- (st/open-schema (st/optional-keys {:new-index-settings (s/pred map?), :new-index-name (s/maybe s/Str), :dry_run s/Bool}))])

run a rollover query on an alias with given conditions
sourceraw docstring

rollover-uriclj

(rollover-uri uri alias)
(rollover-uri uri alias new-index-name dry-run)

Inputs: ([uri alias] [uri :- s/Str alias :- s/Str new-index-name :- (s/maybe s/Str) dry-run :- (s/maybe s/Bool)]) Returns: s/Str

make a rollover uri from a host and an index name

Inputs: ([uri alias] [uri :- s/Str alias :- s/Str new-index-name :- (s/maybe s/Str) dry-run :- (s/maybe s/Bool)])
Returns: s/Str

make a rollover uri from a host and an index name
sourceraw docstring

template-uriclj

(template-uri uri template-name)

Inputs: [uri :- s/Str template-name :- s/Str] Returns: s/Str

make a template uri from a host and a template name

Inputs: [uri :- s/Str template-name :- s/Str]
Returns: s/Str

make a template uri from a host and a template name
sourceraw docstring

update-mappings!clj

(update-mappings! conn index-name mappings)
(update-mappings! {:keys [uri request-fn] :as conn}
                  index-name
                  doc-type
                  mappings)

Inputs: ([{:keys [uri request-fn], :as conn} :- ESConn index-name :- s/Str doc-type :- (s/maybe s/Str) mappings :- (s/pred map?)] [conn :- ESConn index-name :- s/Str mappings :- (s/pred map?)])

Update an ES index mapping. takes a mappings map from field names to mapping types.

Inputs: ([{:keys [uri request-fn], :as conn} :- ESConn index-name :- s/Str doc-type :- (s/maybe s/Str) mappings :- (s/pred map?)] [conn :- ESConn index-name :- s/Str mappings :- (s/pred map?)])

Update an ES index mapping. takes a mappings map
from field names to mapping types.
sourceraw docstring

update-settings!clj

(update-settings! {:keys [uri request-fn] :as conn} index-name settings)

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn index-name :- s/Str settings :- s/Any]

update an ES index settings

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn index-name :- s/Str settings :- s/Any]

update an ES index settings
sourceraw docstring

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

× close