Liking cljdoc? Tell your friends :D

clj-momo.lib.es.document


bulk-create-docclj

(bulk-create-doc conn docs refresh?)
(bulk-create-doc conn docs refresh? max-size)

Inputs: ([conn :- ESConn docs :- [s/Any] refresh? :- Refresh] [conn :- ESConn docs :- [s/Any] refresh? :- Refresh max-size :- (s/maybe s/Int)])

create multiple documents on ES and return the created documents

Inputs: ([conn :- ESConn docs :- [s/Any] refresh? :- Refresh] [conn :- ESConn docs :- [s/Any] refresh? :- Refresh max-size :- (s/maybe s/Int)])

create multiple documents on ES and return the created documents
sourceraw docstring

bulk-indexclj

(bulk-index documents)

generates the content for a bulk insert operation

generates the content for a bulk insert operation
sourceraw docstring

bulk-uriclj

(bulk-uri uri)

make an uri for bulk action

make an uri for bulk action
sourceraw docstring

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 mapping)
(count-docs {:keys [uri cm]} index-name mapping query)

Inputs: ([{:keys [uri cm]} :- ESConn index-name :- s/Str mapping :- (s/maybe s/Str) query :- (s/maybe ESQuery)] [es-conn :- ESConn index-name :- s/Str mapping :- (s/maybe s/Str)])

Count documents on ES matching given query.

Inputs: ([{:keys [uri cm]} :- ESConn index-name :- s/Str mapping :- (s/maybe s/Str) query :- (s/maybe ESQuery)] [es-conn :- ESConn index-name :- s/Str mapping :- (s/maybe s/Str)])

Count documents on ES matching given query.
sourceraw docstring

count-uriclj

(count-uri uri index-name mapping)

make an uri for search action

make an uri for search action
sourceraw docstring

create-docclj

(create-doc es-conn index-name mapping doc refresh?)

Inputs: [es-conn :- ESConn index-name :- s/Str mapping :- s/Str doc :- s/Any refresh? :- Refresh]

create a document on es return the created document

Inputs: [es-conn :- ESConn index-name :- s/Str mapping :- s/Str doc :- s/Any refresh? :- Refresh]

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 cm]}
                 index-names
                 mapping
                 q
                 wait-for-completion?
                 refresh?)

Inputs: [{:keys [uri cm]} :- ESConn index-names :- [s/Str] mapping :- (s/maybe s/Str) q :- ESQuery wait-for-completion? :- s/Bool refresh? :- Refresh]

delete all documents that match a query in an index

Inputs: [{:keys [uri cm]} :- ESConn index-names :- [s/Str] mapping :- (s/maybe s/Str) q :- ESQuery wait-for-completion? :- s/Bool refresh? :- Refresh]

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

delete-by-query-uriclj

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

Inputs: [uri index-names mapping]

Inputs: [uri index-names mapping]
sourceraw docstring

delete-docclj

(delete-doc {:keys [uri cm]} index-name mapping id refresh?)

Inputs: [{:keys [uri cm]} :- ESConn index-name :- s/Str mapping :- s/Str id :- s/Str refresh? :- Refresh]

delete a document on es, returns boolean

Inputs: [{:keys [uri cm]} :- ESConn index-name :- s/Str mapping :- s/Str id :- s/Str refresh? :- Refresh]

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

generate-es-paramsclj

(generate-es-params query aggs params)
source

get-docclj

(get-doc {:keys [uri cm]} index-name mapping id params)

Inputs: [{:keys [uri cm]} :- ESConn index-name mapping id params]

get a document on es and return only the source

Inputs: [{:keys [uri cm]} :- ESConn index-name mapping id params]

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 es-conn index-name mapping doc refresh?)

Inputs: [es-conn :- ESConn index-name :- s/Str mapping :- s/Str doc :- s/Any refresh? :- Refresh]

index a document on es return the indexed document

Inputs: [es-conn :- ESConn index-name :- s/Str mapping :- s/Str doc :- s/Any refresh? :- Refresh]

index a document on es return the indexed document
sourceraw docstring

index-doc-internalclj

(index-doc-internal {:keys [uri cm]}
                    index-name
                    mapping
                    {:keys [id] :as doc}
                    {:keys [refresh op_type]})

Inputs: [{:keys [uri cm]} :- ESConn index-name :- s/Str mapping :- s/Str {:keys [id], :as doc} :- s/Any {:keys [refresh op_type]}]

Inputs: [{:keys [uri cm]} :- ESConn index-name :- s/Str mapping :- s/Str {:keys [id], :as doc} :- s/Any {:keys [refresh op_type]}]
sourceraw docstring

index-doc-uriclj

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

make an uri for document index

make an uri for document index
sourceraw docstring

index-operationclj

(index-operation doc)

helper to prepare a bulk insert operation

helper to prepare a bulk insert operation
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 es-conn index-name mapping q params)
(query {:keys [uri cm]}
       index-name
       mapping
       q
       aggs
       {:keys [full-hits? scroll] :as params})

Inputs: ([{:keys [uri cm]} :- ESConn index-name :- (s/maybe s/Str) mapping :- (s/maybe s/Str) q :- (s/maybe ESQuery) aggs :- (s/maybe ESAggs) {:keys [full-hits? scroll], :as params} :- s/Any] [es-conn index-name mapping q params])

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

Inputs: ([{:keys [uri cm]} :- ESConn index-name :- (s/maybe s/Str) mapping :- (s/maybe s/Str) q :- (s/maybe ESQuery) aggs :- (s/maybe ESAggs) {:keys [full-hits? scroll], :as params} :- s/Any] [es-conn index-name mapping q params])

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

search-docsclj

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

Inputs: [es-conn :- ESConn index-name :- (s/maybe s/Str) mapping :- (s/maybe s/Str) es-query :- (s/maybe ESQuery) all-of :- (s/maybe #:s{Any s/Any}) params :- 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: [es-conn :- ESConn index-name :- (s/maybe s/Str) mapping :- (s/maybe s/Str) es-query :- (s/maybe ESQuery) all-of :- (s/maybe #:s{Any s/Any}) params :- 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 mapping)

make an uri for search action

make an uri for search action
sourceraw docstring

sort-paramsclj

(sort-params sort_by sort_order)
source

update-docclj

(update-doc {:keys [uri cm]}
            index-name
            mapping
            id
            doc
            refresh?
            &
            [{:keys [retry-on-conflict]
              :or {retry-on-conflict default-retry-on-conflict}}])

Inputs: [{:keys [uri cm]} :- ESConn index-name :- s/Str mapping :- s/Str id :- s/Str doc :- s/Any refresh? :- Refresh & [{:keys [retry-on-conflict], :or {retry-on-conflict default-retry-on-conflict}}]]

update a document on es return the updated document

Inputs: [{:keys [uri cm]} :- ESConn index-name :- s/Str mapping :- s/Str id :- s/Str doc :- s/Any refresh? :- Refresh & [{:keys [retry-on-conflict], :or {retry-on-conflict default-retry-on-conflict}}]]

update a document on es return the updated document
sourceraw docstring

update-doc-uriclj

(update-doc-uri uri index-name mapping id retry-on-conflict)

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