Module

Database.ElasticSearch.Update

#UpdateParams

type UpdateParams = (_source :: Optional (Array String), _sourceExcludes :: Optional (Array String), _sourceIncludes :: Optional (Array String), body :: UpdateBody, id :: String, ifPrimaryTerm :: Optional Number, ifSeqNo :: Optional Number, index :: String, lang :: Optional String, refresh :: Optional Refresh, requireAlias :: Optional Boolean, retryOnConflict :: Optional Number, routing :: Optional String, timeout :: Optional String, waitForActiveShards :: Optional String)

#Script

type Script = String |+| { lang :: String, params :: Object Json, source :: String }

#UpdateBody

type UpdateBody = { doc :: Object Json } |+| { script :: Script }

#doc

doc :: forall a. EncodeJson (Record a) => Record a -> UpdateBody

#script

script :: forall a. Castable a Script => a -> UpdateBody

Modules