Liking cljdoc? Tell your friends :D
Clojure only.

scroll


dissoc-aggsclj

(dissoc-aggs scroll-request)
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
    • cleanup?: should the scroll be deleted after consuming all the documents, default false
    • 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
- - cleanup?: should the scroll be deleted after consuming all the documents, default false
- - size: how many records should be fetched from Elasticsearch in one network trip, default 1000
sourceraw docstring

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

× close