Common functions (put/get/post/delete)
Common functions (put/get/post/delete)
(all index)
An all query using match all on provided index this should use scrolling for 10K systems
An all query using match all on provided index this should use scrolling for 10K systems
(bulk-create index ms)
Performs a bulk persist operation for instances ms of and return generated ids (create :people :person [{:name "john"} {:name "foo"}])
The result groups the created ids into successful ones (under true) vs failed ones.
Performs a bulk persist operation for instances ms of and return generated ids (create :people :person [{:name "john"} {:name "foo"}]) The result groups the created ids into successful ones (under true) vs failed ones.
(bulk-get index ids)
Bulk get a list of documents with ids (bulk-get :people :person [*1 *2])
Bulk get a list of documents with ids (bulk-get :people :person [*1 *2])
(create index m)
Persist instance m of and return generated id (create :people :person {:name "john"})
Persist instance m of and return generated id (create :people :person {:name "john"})
(create-index index {:keys [mappings] :as spec})
Create an index with provided (single) mappings (since 6.X) (create-index :people {:mappings {:properties {:name {:type "text"}}}})
Create an index with provided (single) mappings (since 6.X) (create-index :people {:mappings {:properties {:name {:type "text"}}}})
(delete index)
(delete index id)
Delete all under index or a single id
Delete all under index or a single id
(delete-by index query)
Delete by query like {:match {:type "nmap scan"}}
Delete by query like {:match {:type "nmap scan"}}
(delete-index idx)
Delete an index (delete-index :people)
Delete an index (delete-index :people)
(exists? index)
(exists? index id)
Check if index exists or instance with id existing within an index
Check if index exists or instance with id existing within an index
(list-indices)
List all available indices
List all available indices
(missing? verb e)
A document missing error reponse
A document missing error reponse
(ok resp)
Check if the http request is 200 or 201
Check if the http request is 200 or 201
(prefix-switch k)
Change Elasticsearch connection prefix (connect to another instance)
Change Elasticsearch connection prefix (connect to another instance)
(pretty-error m)
A pretty print error log
A pretty print error log
(refresh-index index)
Refresh the index in order to get the lastest operations available for search
Refresh the index in order to get the lastest operations available for search
(search index input)
An Elasticsearch search query
An Elasticsearch search query
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close