Module

Database.ElasticSearch.Index

Package
purescript-elasticsearch
Repository
ConnorDillon/purescript-elasticsearch

#IndexParams Source

type IndexParams = (body :: Object Json, id :: Optional String, ifPrimaryTerm :: Optional Number, ifSeqNo :: Optional Number, index :: String, opType :: Optional OpType, pipeline :: Optional String, refresh :: Optional Refresh, requireAlias :: Optional Boolean, routing :: Optional String, timeout :: Optional String, type :: Optional String, version :: Optional Number, versionType :: Optional VersionType, waitForActiveShards :: Optional String)

#OpType Source

type OpType = (StringLit "index") |+| (StringLit "create")

#Refresh Source

type Refresh = (StringLit "true") |+| (StringLit "false") |+| (StringLit "wait_for")

#VersionType Source

type VersionType = (StringLit "internal") |+| (StringLit "external") |+| (StringLit "external_gte")

#IndexResult Source

type IndexResult = (_id :: String, _index :: String, _primary_term :: Int, _seq_no :: Int, _shards :: { failed :: Int, successful :: Int, total :: Int }, _type :: String, _version :: Int, result :: String)