Module

Database.ElasticSearch.Bulk

#BulkParams

type BulkParams = (_source :: Optional (Array String), _sourceExcludes :: Optional (Array String), _sourceIncludes :: Optional (Array String), body :: BulkBody, index :: String, pipeline :: Optional String, refresh :: Optional Refresh, requireAlias :: Optional Boolean, routing :: Optional String, timeout :: Optional String, waitForActiveShards :: Optional String)

#BulkBody

#BulkDeleteParams

type BulkDeleteParams = { _id :: String, _index :: Optional String, require_alias :: Optional Boolean }

#BulkIndexParams

type BulkIndexParams = { _id :: Optional String, _index :: Optional String, dynamic_templates :: Optional (Object Json), require_alias :: Optional Boolean }

#BulkCreateParams

#BulkUpdateParams

type BulkUpdateParams = { _id :: String, _index :: Optional String, require_alias :: Optional Boolean }

#Action

type Action = { create :: BulkCreateParams } |+| { delete :: BulkDeleteParams } |+| { index :: BulkIndexParams } |+| { update :: BulkUpdateParams } |+| { doc :: Object Json } |+| (Object Json)

#BulkResult

type BulkResult = (errors :: Boolean, items :: Array ActionResult, took :: Int)

#ActionResult

type ActionResult = { _id :: String, _index :: String, _primary_term :: Int, _seq_no :: Int, _shards :: { failed :: Int, successful :: Int, total :: Int }, _type :: String, _version :: Int, error :: Optional Error, result :: String, status :: Int }

#Error

type Error = { index :: String, index_uuid :: String, reason :: String, type :: String }

#bulkCreate

bulkCreate :: forall a b. Castable a BulkCreateParams => EncodeJson (Record b) => a -> Record b -> BulkBody

#bulkIndex

bulkIndex :: forall a b. Castable a BulkIndexParams => EncodeJson (Record b) => a -> Record b -> BulkBody

#bulkDelete

#bulkUpdate

bulkUpdate :: forall a b. Castable a BulkUpdateParams => EncodeJson (Record b) => a -> Record b -> BulkBody

Modules