re-share.es.common

Common ES functions

all

(all index type)
An all query using match all on provided type, this should use scrolling for 10K systems

clear

(clear index)
Creates systems index and type

create

(create index t m)
Persist instance m of type t and return generated id

create-index

(create-index index mappings)
Create an index with provided mappings

delete

(delete index)(delete index t id)

delete-all

(delete-all index t)

delete-by

(delete-by index type query)
Delete by query like {:match {:type "nmap scan"}}

delete-call

(delete-call target)

exists-call

(exists-call target)

exists?

(exists? index)(exists? index t id)
Check if index exists or instance with id existing within an index

get

(get index t id)

put

(put index t id m)

put-call

(put-call target m)

settings