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-get index t 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 t 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 {:person {:properties {:name {:type "text"}}}}})
Create an index with provided (single) mappings (since 6.X) (create-index :people {:mappings {:person {:properties {:name {:type "text"}}}}})
(delete index t)
(delete index t id)
Delete all under index or a single id
Delete all under index or a single id
(delete-by index t 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 t 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
(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