Liking cljdoc? Tell your friends :D

ductile.document


bulkclj

(bulk conn actions opts)
(bulk {:keys [version] :as conn} actions opts max-size)

Inputs: ([conn :- ESConn actions :- BulkActions opts :- CRUDOptions] [{:keys [version], :as conn} :- ESConn actions :- BulkActions opts :- CRUDOptions max-size :- (s/maybe s/Int)])

Bulk actions on ES

Inputs: ([conn :- ESConn actions :- BulkActions opts :- CRUDOptions] [{:keys [version], :as conn} :- ESConn actions :- BulkActions opts :- CRUDOptions max-size :- (s/maybe s/Int)])

Bulk actions on ES
sourceraw docstring

bulk-create-docsclj

(bulk-create-docs conn docs opts)
(bulk-create-docs conn docs opts max-size)

Inputs: ([conn :- ESConn docs :- [(s/pred map?)] opts :- CRUDOptions] [conn :- ESConn docs :- [(s/pred map?)] opts :- CRUDOptions max-size :- (s/maybe s/Int)])

create multiple documents on ES

Inputs: ([conn :- ESConn docs :- [(s/pred map?)] opts :- CRUDOptions] [conn :- ESConn docs :- [(s/pred map?)] opts :- CRUDOptions max-size :- (s/maybe s/Int)])

create multiple documents on ES
sourceraw docstring

bulk-delete-docsclj

(bulk-delete-docs conn docs opts)
(bulk-delete-docs conn docs opts max-size)

Inputs: ([conn :- ESConn docs :- [(st/open-schema {:_id s/Str, :_index s/Str})] opts :- CRUDOptions] [conn :- ESConn docs :- [s/Any] opts :- CRUDOptions max-size :- (s/maybe s/Int)])

delete multiple documents on ES

Inputs: ([conn :- ESConn docs :- [(st/open-schema {:_id s/Str, :_index s/Str})] opts :- CRUDOptions] [conn :- ESConn docs :- [s/Any] opts :- CRUDOptions max-size :- (s/maybe s/Int)])

delete multiple documents on ES
sourceraw docstring

bulk-index-docsclj

(bulk-index-docs conn docs opts)
(bulk-index-docs conn docs opts max-size)

Inputs: ([conn :- ESConn docs :- [(s/pred map?)] opts :- CRUDOptions] [conn :- ESConn docs :- [s/Any] opts :- CRUDOptions max-size :- (s/maybe s/Int)])

index multiple documents on ES

Inputs: ([conn :- ESConn docs :- [(s/pred map?)] opts :- CRUDOptions] [conn :- ESConn docs :- [s/Any] opts :- CRUDOptions max-size :- (s/maybe s/Int)])

index multiple documents on ES
sourceraw docstring

bulk-update-docsclj

(bulk-update-docs conn docs opts)
(bulk-update-docs conn docs opts max-size)

Inputs: ([conn :- ESConn docs :- [(st/open-schema {:_id s/Str, :_index s/Str})] opts :- CRUDOptions] [conn :- ESConn docs :- [s/Any] opts :- CRUDOptions max-size :- (s/maybe s/Int)])

update multiple documents on ES

Inputs: ([conn :- ESConn docs :- [(st/open-schema {:_id s/Str, :_index s/Str})] opts :- CRUDOptions] [conn :- ESConn docs :- [s/Any] opts :- CRUDOptions max-size :- (s/maybe s/Int)])

update multiple documents on ES
sourceraw docstring

bulk-uriclj

(bulk-uri uri)

make an uri for bulk action

make an uri for bulk action
sourceraw docstring

BulkActionsclj

source

BulkOpsclj

source

byte-sizeclj

(byte-size s)

Count the size of the given string in bytes.

Count the size of the given string in bytes.
sourceraw docstring

count-docsclj

(count-docs es-conn index-name)
(count-docs {:keys [uri request-fn] :as conn} index-name query)

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

Count documents on ES matching given query.

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

Count documents on ES matching given query.
sourceraw docstring

count-uriclj

(count-uri uri index-name)

make an uri for search action

make an uri for search action
sourceraw docstring

create-docclj

(create-doc conn index-name doc opts)
(create-doc conn index-name doc-type doc opts)

Inputs: ([conn :- ESConn index-name :- s/Str doc :- s/Any opts :- CRUDOptions] [conn :- ESConn index-name :- s/Str doc-type :- (s/maybe s/Str) doc :- s/Any opts :- CRUDOptions])

create a document on es return the created document

Inputs: ([conn :- ESConn index-name :- s/Str doc :- s/Any opts :- CRUDOptions] [conn :- ESConn index-name :- s/Str doc-type :- (s/maybe s/Str) doc :- s/Any opts :- CRUDOptions])

create a document on es return the created document
sourceraw docstring

default-limitclj

source

default-retry-on-conflictclj

source

delete-by-queryclj

(delete-by-query {:keys [uri request-fn] :as conn} index-names q opts)

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn index-names :- [s/Str] q :- ESQuery opts :- CRUDOptions]

delete all documents that match a query in an index

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn index-names :- [s/Str] q :- ESQuery opts :- CRUDOptions]

delete all documents that match a query in an index
sourceraw docstring

delete-by-query-uriclj

(delete-by-query-uri uri index-names)

Inputs: [uri index-names]

Inputs: [uri index-names]
sourceraw docstring

delete-docclj

(delete-doc conn index-name id opts)
(delete-doc {:keys [uri request-fn version] :as conn}
            index-name
            doc-type
            id
            opts)

Inputs: ([conn :- ESConn index-name :- s/Str id :- s/Str opts :- CRUDOptions] [{:keys [uri request-fn version], :as conn} :- ESConn index-name :- s/Str doc-type :- (s/maybe s/Str) id :- s/Str opts :- CRUDOptions])

delete a document on es, returns boolean

Inputs: ([conn :- ESConn index-name :- s/Str id :- s/Str opts :- CRUDOptions] [{:keys [uri request-fn version], :as conn} :- ESConn index-name :- s/Str doc-type :- (s/maybe s/Str) id :- s/Str opts :- CRUDOptions])

delete a document on es, returns boolean
sourceraw docstring

delete-doc-uriclj

make an uri for doc deletion

make an uri for doc deletion
sourceraw docstring

format-bulk-doc-fnclj

(format-bulk-doc-fn op-type)

helper to prepare a bulk operation

helper to prepare a bulk operation
sourceraw docstring

format-bulk-docsclj

(format-bulk-docs op-type documents)

generates the content for a bulk operation

generates the content for a bulk operation
sourceraw docstring

format-bulk-resclj

(format-bulk-res bulk-res-list)
source

generate-search-paramsclj

(generate-search-params query aggs params)
source

get-docclj

(get-doc conn index-name id opts)
(get-doc {:keys [uri request-fn version] :as conn} index-name doc-type id opts)

Inputs: ([{:keys [uri request-fn version], :as conn} :- ESConn index-name :- s/Str doc-type :- (s/maybe s/Str) id :- s/Str opts :- CRUDOptions] [conn :- ESConn index-name :- s/Str id :- s/Str opts :- CRUDOptions])

get a document on es and return only the source

Inputs: ([{:keys [uri request-fn version], :as conn} :- ESConn index-name :- s/Str doc-type :- (s/maybe s/Str) id :- s/Str opts :- CRUDOptions] [conn :- ESConn index-name :- s/Str id :- s/Str opts :- CRUDOptions])

get a document on es and return only the source
sourceraw docstring

get-doc-uriclj

make an uri for doc retrieval

make an uri for doc retrieval
sourceraw docstring

index-docclj

(index-doc conn index-name doc opts)
(index-doc conn index-name doc-type doc opts)

Inputs: ([conn :- ESConn index-name :- s/Str doc-type :- (s/maybe s/Str) doc :- s/Any opts :- CRUDOptions] [conn :- ESConn index-name :- s/Str doc :- s/Any opts :- CRUDOptions])

index a document on es return the indexed document

Inputs: ([conn :- ESConn index-name :- s/Str doc-type :- (s/maybe s/Str) doc :- s/Any opts :- CRUDOptions] [conn :- ESConn index-name :- s/Str doc :- s/Any opts :- CRUDOptions])

index a document on es return the indexed document
sourceraw docstring

index-doc-uriclj

(index-doc-uri uri index-name doc-type id)

make an uri for document index

make an uri for document index
sourceraw docstring

params->paginationclj

(params->pagination {:keys [sort_by sort_order offset limit search_after]
                     :or {sort_order :asc limit pagination/default-limit}})
source

partition-json-opsclj

(partition-json-ops json-ops max-size)

Return a lazy sequence of lists of ops whose size is less than max-size. If a json-op exceeds the max size, it is included in a list of one element.

Return a lazy sequence of lists of ops whose size is less than max-size.
If a json-op exceeds the max size, it is included in a list of one element.
sourceraw docstring

queryclj

(query conn index-name q opts)
(query {:keys [uri request-fn] :as conn}
       index-name
       q
       aggs
       {:keys [full-hits?] :as opts})

Inputs: ([{:keys [uri request-fn], :as conn} :- ESConn index-name :- (s/maybe s/Str) q :- (s/maybe ESQuery) aggs :- (s/maybe ESAggs) {:keys [full-hits?], :as opts} :- s/Any] [conn index-name q opts])

Search for documents on ES using any query. Performs aggregations when specified.

Inputs: ([{:keys [uri request-fn], :as conn} :- ESConn index-name :- (s/maybe s/Str) q :- (s/maybe ESQuery) aggs :- (s/maybe ESAggs) {:keys [full-hits?], :as opts} :- s/Any] [conn index-name q opts])

Search for documents on ES using any query. Performs aggregations when specified.
sourceraw docstring

search-docsclj

(search-docs conn index-name es-query all-of opts)

Inputs: [conn :- ESConn index-name :- (s/maybe s/Str) es-query :- (s/maybe ESQuery) all-of :- (s/maybe #:s{Any s/Any}) opts :- s/Any]

Search for documents on ES using a query string search. Also applies a filter map, converting the values in the all-of into must match terms.

Inputs: [conn :- ESConn index-name :- (s/maybe s/Str) es-query :- (s/maybe ESQuery) all-of :- (s/maybe #:s{Any s/Any}) opts :- s/Any]

Search for documents on ES using a query string search.  Also applies a filter map, converting
 the values in the all-of into must match terms.
sourceraw docstring

search-uriclj

(search-uri uri index-name)

make an uri for search action

make an uri for search action
sourceraw docstring

sort-paramsclj

(sort-params sort_by sort_order)
source

string->input-streamclj

(string->input-stream s)
source

update-by-queryclj

(update-by-query {:keys [uri request-fn] :as conn} index-names form-params opts)

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn index-names :- [s/Str] form-params :- (s/maybe UpdateByQueryParams) opts :- CRUDOptions]

Performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.

Inputs: [{:keys [uri request-fn], :as conn} :- ESConn index-names :- [s/Str] form-params :- (s/maybe UpdateByQueryParams) opts :- CRUDOptions]

Performs an update on every document in the data stream or index without modifying
the source, which is useful for picking up mapping changes.
sourceraw docstring

update-by-query-uriclj

(update-by-query-uri uri index-names)

Inputs: [uri index-names]

Inputs: [uri index-names]
sourceraw docstring

update-docclj

(update-doc conn index-name id doc opts)
(update-doc {:keys [uri request-fn version] :as conn}
            index-name
            doc-type
            id
            doc
            opts)

Inputs: ([{:keys [uri request-fn version], :as conn} :- ESConn index-name :- s/Str doc-type :- (s/maybe s/Str) id :- s/Str doc :- s/Any opts :- CRUDOptions] [conn :- ESConn index-name :- s/Str id :- s/Str doc :- s/Any opts :- CRUDOptions])

update a document on es return the updated document

Inputs: ([{:keys [uri request-fn version], :as conn} :- ESConn index-name :- s/Str doc-type :- (s/maybe s/Str) id :- s/Str doc :- s/Any opts :- CRUDOptions] [conn :- ESConn index-name :- s/Str id :- s/Str doc :- s/Any opts :- CRUDOptions])

update a document on es return the updated document
sourceraw docstring

update-doc-uriclj

(update-doc-uri uri index-name id)
(update-doc-uri uri index-name doc-type id)

make an uri for document update

make an uri for document update
sourceraw docstring

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

× close