Liking cljdoc? Tell your friends :D

scroll


clientclj

source

continueclj

(continue es-host scroll-id opts)
source

default-exponential-backoff-paramsclj

source

default-queryclj

source

default-sizeclj

source

execute-requestclj

(execute-request {:keys [url body opts]})
source

exponential-backoffclj

(exponential-backoff f)
(exponential-backoff f {:keys [time rate max p?] :as opts})
source

extract-hitsclj

(extract-hits batch keywordize?)
source

extract-scroll-idclj

(extract-scroll-id batch keywordize?)
source

fetchclj

(fetch {:keys [es-host index-name query scroll-id opts] :as req})
source

hitsclj

(hits {:keys [es-host] :as scroll-request})

Returns a lazy sequence of hits from Elasticsearch using Scroll API. See: https://www.elastic.co/guide/en/elasticsearch/reference/7.5/search-request-body.html#request-body-search-scroll

Params:

  • es-host: Elasticsearch host, e.g. http://localhost:9200
  • index-name: indices through which to scroll, default *, i.e. all indices
  • query: Elasticsearch query to filter the documents, default: {:sort ["_doc"]}
  • opts: supported options:
    • keep-context: specifies how log to maintain scroll state, default 30s
    • keywordize?: should the JSON keys be converted to Clojure keys, default true
    • size: how many records should be fetched from Elasticsearch in one network trip, default 1000
Returns a lazy sequence of hits from Elasticsearch using Scroll API.
See: https://www.elastic.co/guide/en/elasticsearch/reference/7.5/search-request-body.html#request-body-search-scroll

Params:
- es-host: Elasticsearch host, e.g. `http://localhost:9200`
- index-name: indices through which to scroll, default `*`, i.e. all indices
- query: Elasticsearch query to filter the documents, default: `{:sort ["_doc"]}`
- opts: supported options:
- - keep-context: specifies how log to maintain scroll state, default `30s`
- - keywordize?: should the JSON keys be converted to Clojure keys, default true
- - size: how many records should be fetched from Elasticsearch in one network trip, default 1000
sourceraw docstring

set-batch-sizeclj

(set-batch-size query opts)
source

sni-configureclj

(sni-configure ssl-engine uri)
source

startclj

(start es-host index-name query opts)
source

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

× close