Liking cljdoc? Tell your friends :D

beam-es.core


chunk-size


date-histogram!

(date-histogram! es-uri
                 index
                 interval
                 start
                 end
                 timezone
                 criteria
                 field-list)

Returns a date histogram based on params: interval hour | day | week | month | year, start a local date - for example 2017-05-04 end local date timezone for example Australia/Sydney criteria a key value map of field critera to search by. field-list a keyword/string list of field names to aggregate.

Returns a date histogram based on params:
`interval` hour | day | week | month | year,
`start` a local date - for example `2017-05-04`
`end` local date
`timezone` for example `Australia/Sydney`
`criteria` a key value map of field critera to search by.
`field-list` a keyword/string list of field names to aggregate.
raw docstring

delete-by-query!

(delete-by-query! es-uri index criteria)

Deletes docs from elasticsearch based on criteria. criteria is a map with multiple field = match-value search criteria.

Deletes docs from elasticsearch based on `criteria`.
`criteria` is a map with multiple `field = match-value` search criteria.
raw docstring

handle-bulk-error

(handle-bulk-error uri bulk-docs result retries)

Handles an error repsonse from elasticsearch and retries bulk post.

Handles an error repsonse from elasticsearch and retries bulk post.
raw docstring

parse-histogram-result

(parse-histogram-result es-result field-list)

Extracts the required values from elasticsearch result and converts to a simple flat array.

Extracts the required values from elasticsearch result and converts to
a simple flat array.
raw docstring

post!

(post! uri bulk-docs retries)

Posts a bulk request to elasticsearch and will retry in accordance with retries. body is a clojure map of form bulk-entry. Returns {:success true} if no errors are raised. Otherwise throws exception

Posts a bulk request to elasticsearch and will retry in
accordance with `retries`. `body` is a clojure map of form `bulk-entry`.
Returns `{:success true}` if no errors are raised. Otherwise throws exception
raw docstring

post-bulk!

(post-bulk! es-uri index ids data)

put!

(put! es-uri index id doc retries)

Puts doc to elasticsearch

Puts doc to elasticsearch
raw docstring

query!

(query! es-uri index criteria)

Returns docs from index based on criteria. criteria in form of a clojure map. Max return size set to 1000.

Returns docs from `index` based on `criteria`.
`criteria` in form of a clojure map.
Max return size set to 1000.
raw docstring

sleep-ms

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

× close