Module

Database.ElasticSearch.Bulk

Package
purescript-elasticsearch
Repository
ConnorDillon/purescript-elasticsearch

#BulkParams Source

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 Source

#BulkDeleteParams Source

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

#BulkIndexParams Source

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

#BulkUpdateParams Source

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

#Action Source

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

#BulkResult Source

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

#ActionResult Source

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 Source

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

#bulkCreate Source

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

#bulkIndex Source

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

#bulkDelete Source

#bulkUpdate Source

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