(exponential-backoff f)
(exponential-backoff f {:keys [time rate max p?] :as opts})
(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:
http://localhost:9200
*
, i.e. all indices{:sort ["_doc"]}
30s
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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close