Module

Database.ElasticSearch.Update

Package
purescript-elasticsearch
Repository
ConnorDillon/purescript-elasticsearch

#UpdateParams Source

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 Source

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

#UpdateBody Source

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

#doc Source

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

#script Source

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