bloodhound-0.24.0.0: Elasticsearch client library for Haskell
Safe HaskellNone
LanguageHaskell2010

Database.Bloodhound.Client.Cluster

Synopsis

Documentation

data Version Source #

Version is embedded in Status

Instances

Instances details
FromJSON Version Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

ToJSON Version Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

Generic Version Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

Associated Types

type Rep Version 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

type Rep Version = D1 ('MetaData "Version" "Database.Bloodhound.Internal.Versions.Common.Types.Nodes" "bloodhound-0.24.0.0-A3ENRGIPQhkGcPhIwxbIBM" 'False) (C1 ('MetaCons "Version" 'PrefixI 'True) ((S1 ('MetaSel ('Just "number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VersionNumber) :*: S1 ('MetaSel ('Just "build_hash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuildHash)) :*: (S1 ('MetaSel ('Just "build_date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime) :*: (S1 ('MetaSel ('Just "build_snapshot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "lucene_version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VersionNumber)))))

Methods

from :: Version -> Rep Version x #

to :: Rep Version x -> Version #

Show Version Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

Eq Version Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

Methods

(==) :: Version -> Version -> Bool #

(/=) :: Version -> Version -> Bool #

type Rep Version Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

type Rep Version = D1 ('MetaData "Version" "Database.Bloodhound.Internal.Versions.Common.Types.Nodes" "bloodhound-0.24.0.0-A3ENRGIPQhkGcPhIwxbIBM" 'False) (C1 ('MetaCons "Version" 'PrefixI 'True) ((S1 ('MetaSel ('Just "number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VersionNumber) :*: S1 ('MetaSel ('Just "build_hash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuildHash)) :*: (S1 ('MetaSel ('Just "build_date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime) :*: (S1 ('MetaSel ('Just "build_snapshot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "lucene_version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VersionNumber)))))

data Status Source #

Status is a data type for describing the JSON body returned by Elasticsearch when you query its status. This was deprecated in 1.2.0.

http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-status.html#indices-status

Constructors

Status 

newtype Mapping Source #

Support for type reification of Mappings is currently incomplete, for now the mapping API verbiage expects a ToJSONable blob.

Indexes have mappings, mappings are schemas for the documents contained in the index. I'd recommend having only one mapping per index, always having a mapping, and keeping different kinds of documents separated if possible.

Constructors

Mapping 

newtype Bytes Source #

A measure of bytes used for various configurations. You may want to use smart constructors like gigabytes for larger values.

>>> gigabytes 9
Bytes 9000000000
>>> megabytes 9
Bytes 9000000
>>> kilobytes 9
Bytes 9000

Constructors

Bytes Int 

newtype NodeName Source #

A human-readable node name that is supplied by the user in the node config or automatically generated by Elasticsearch.

Constructors

NodeName 

Fields

data BulkOperation Source #

BulkOperation is a sum type for expressing the four kinds of bulk operation index, create, delete, and update. BulkIndex behaves like an "upsert", BulkCreate will fail if a document already exists at the DocId. Consult the Bulk API documentation for further explanation. Warning: Bulk operations suffixed with Auto rely on Elasticsearch to generate the id. Often, people use auto-generated identifiers when Elasticsearch is the only place that their data is stored. Do not let Elasticsearch be the only place your data is stored. It does not guarantee durability, and it may silently discard data. This issue is discussed further on github.

Constructors

BulkIndex IndexName DocId Value

Create the document, replacing it if it already exists.

BulkIndexAuto IndexName Value

Create a document with an autogenerated id.

BulkIndexEncodingAuto IndexName Encoding

Create a document with an autogenerated id. Use fast JSON encoding.

BulkCreate IndexName DocId Value

Create a document, failing if it already exists.

BulkCreateEncoding IndexName DocId Encoding

Create a document, failing if it already exists. Use fast JSON encoding.

BulkDelete IndexName DocId

Delete the document

BulkUpdate IndexName DocId Value

Update the document, merging the new value with the existing one.

BulkUpsert IndexName DocId UpsertPayload [UpsertActionMetadata]

Update the document if it already exists, otherwise insert it.

data AllocationPolicy Source #

Constructors

AllocAll

Allows shard allocation for all shards.

AllocPrimaries

Allows shard allocation only for primary shards.

AllocNewPrimaries

Allows shard allocation only for primary shards for new indices.

AllocNone

No shard allocation is allowed

Instances

Instances details
FromJSON AllocationPolicy Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

ToJSON AllocationPolicy Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Generic AllocationPolicy Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Associated Types

type Rep AllocationPolicy 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep AllocationPolicy = D1 ('MetaData "AllocationPolicy" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.24.0.0-A3ENRGIPQhkGcPhIwxbIBM" 'False) ((C1 ('MetaCons "AllocAll" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AllocPrimaries" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "AllocNewPrimaries" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AllocNone" 'PrefixI 'False) (U1 :: Type -> Type)))
Show AllocationPolicy Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Eq AllocationPolicy Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep AllocationPolicy Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep AllocationPolicy = D1 ('MetaData "AllocationPolicy" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.24.0.0-A3ENRGIPQhkGcPhIwxbIBM" 'False) ((C1 ('MetaCons "AllocAll" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AllocPrimaries" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "AllocNewPrimaries" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AllocNone" 'PrefixI 'False) (U1 :: Type -> Type)))

data CompoundFormat Source #

Constructors

CompoundFileFormat Bool 
MergeSegmentVsTotalIndex Double

percentage between 0 and 1 where 0 is false, 1 is true

Instances

Instances details
FromJSON CompoundFormat Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

ToJSON CompoundFormat Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Generic CompoundFormat Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Associated Types

type Rep CompoundFormat 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep CompoundFormat = D1 ('MetaData "CompoundFormat" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.24.0.0-A3ENRGIPQhkGcPhIwxbIBM" 'False) (C1 ('MetaCons "CompoundFileFormat" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "MergeSegmentVsTotalIndex" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))
Show CompoundFormat Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Eq CompoundFormat Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep CompoundFormat Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep CompoundFormat = D1 ('MetaData "CompoundFormat" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.24.0.0-A3ENRGIPQhkGcPhIwxbIBM" 'False) (C1 ('MetaCons "CompoundFileFormat" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "MergeSegmentVsTotalIndex" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

data Compression Source #

Constructors

CompressionDefault

Compress with LZ4

CompressionBest

Compress with DEFLATE. Elastic blogs that this can reduce disk use by 15%-25%.

Instances

Instances details
FromJSON Compression Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

ToJSON Compression Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Generic Compression Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Associated Types

type Rep Compression 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep Compression = D1 ('MetaData "Compression" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.24.0.0-A3ENRGIPQhkGcPhIwxbIBM" 'False) (C1 ('MetaCons "CompressionDefault" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CompressionBest" 'PrefixI 'False) (U1 :: Type -> Type))
Show Compression Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Eq Compression Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep Compression Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep Compression = D1 ('MetaData "Compression" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.24.0.0-A3ENRGIPQhkGcPhIwxbIBM" 'False) (C1 ('MetaCons "CompressionDefault" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CompressionBest" 'PrefixI 'False) (U1 :: Type -> Type))

data FSType Source #

Constructors

FSSimple 
FSBuffered 

Instances

Instances details
FromJSON FSType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

ToJSON FSType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Generic FSType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Associated Types

type Rep FSType 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep FSType = D1 ('MetaData "FSType" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.24.0.0-A3ENRGIPQhkGcPhIwxbIBM" 'False) (C1 ('MetaCons "FSSimple" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FSBuffered" 'PrefixI 'False) (U1 :: Type -> Type))

Methods

from :: FSType -> Rep FSType x #

to :: Rep FSType x -> FSType #

Show FSType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Eq FSType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Methods

(==) :: FSType -> FSType -> Bool #

(/=) :: FSType -> FSType -> Bool #

type Rep FSType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep FSType = D1 ('MetaData "FSType" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.24.0.0-A3ENRGIPQhkGcPhIwxbIBM" 'False) (C1 ('MetaCons "FSSimple" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FSBuffered" 'PrefixI 'False) (U1 :: Type -> Type))

data ForceMergeIndexSettings Source #

Constructors

ForceMergeIndexSettings 

Fields

  • maxNumSegments :: Maybe Int

    Number of segments to optimize to. 1 will fully optimize the index. If omitted, the default behavior is to only optimize if the server deems it necessary.

  • onlyExpungeDeletes :: Bool

    Should the optimize process only expunge segments with deletes in them? If the purpose of the optimization is to free disk space, this should be set to True.

  • flushAfterOptimize :: Bool

    Should a flush be performed after the optimize.

data IndexDocumentSettings Source #

IndexDocumentSettings are special settings supplied when indexing a document. For the best backwards compatiblity when new fields are added, you should probably prefer to start with defaultIndexDocumentSettings

data IndexMappingsLimits Source #

Instances

Instances details
FromJSON IndexMappingsLimits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

ToJSON IndexMappingsLimits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Generic IndexMappingsLimits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Associated Types

type Rep IndexMappingsLimits 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep IndexMappingsLimits = D1 ('MetaData "IndexMappingsLimits" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.24.0.0-A3ENRGIPQhkGcPhIwxbIBM" 'False) (C1 ('MetaCons "IndexMappingsLimits" 'PrefixI 'True) ((S1 ('MetaSel ('Just "indexMappingsLimitDepth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "indexMappingsLimitNestedFields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "indexMappingsLimitNestedObjects") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "indexMappingsLimitFieldNameLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)))))
Show IndexMappingsLimits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Eq IndexMappingsLimits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep IndexMappingsLimits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep IndexMappingsLimits = D1 ('MetaData "IndexMappingsLimits" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.24.0.0-A3ENRGIPQhkGcPhIwxbIBM" 'False) (C1 ('MetaCons "IndexMappingsLimits" 'PrefixI 'True) ((S1 ('MetaSel ('Just "indexMappingsLimitDepth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "indexMappingsLimitNestedFields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "indexMappingsLimitNestedObjects") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "indexMappingsLimitFieldNameLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)))))

data IndexSelection Source #

IndexSelection is used for APIs which take a single index, a list of indexes, or the special _all index.

data IndexSettings Source #

IndexSettings is used to configure the shards and replicas when you create an Elasticsearch Index.

http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html

Instances

Instances details
FromJSON IndexSettings Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

ToJSON IndexSettings Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Generic IndexSettings Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Associated Types

type Rep IndexSettings 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep IndexSettings = D1 ('MetaData "IndexSettings" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.24.0.0-A3ENRGIPQhkGcPhIwxbIBM" 'False) (C1 ('MetaCons "IndexSettings" 'PrefixI 'True) (S1 ('MetaSel ('Just "indexShards") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShardCount) :*: (S1 ('MetaSel ('Just "indexReplicas") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplicaCount) :*: S1 ('MetaSel ('Just "indexMappingsLimits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IndexMappingsLimits))))
Show IndexSettings Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Eq IndexSettings Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep IndexSettings Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep IndexSettings = D1 ('MetaData "IndexSettings" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.24.0.0-A3ENRGIPQhkGcPhIwxbIBM" 'False) (C1 ('MetaCons "IndexSettings" 'PrefixI 'True) (S1 ('MetaSel ('Just "indexShards") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShardCount) :*: (S1 ('MetaSel ('Just "indexReplicas") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplicaCount) :*: S1 ('MetaSel ('Just "indexMappingsLimits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IndexMappingsLimits))))

data IndexTemplate Source #

An IndexTemplate defines a template that will automatically be applied to new indices created. The templates include both IndexSettings and mappings, and a simple IndexPattern that controls if the template will be applied to the index created. Specify mappings as follows: [toJSON TweetMapping, ...]

https://www.elastic.co/guide/en/elasticsearch/reference/1.7/indices-templates.html

newtype SearchAliasRouting Source #

Instances

Instances details
FromJSON SearchAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

ToJSON SearchAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Generic SearchAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Associated Types

type Rep SearchAliasRouting 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep SearchAliasRouting = D1 ('MetaData "SearchAliasRouting" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.24.0.0-A3ENRGIPQhkGcPhIwxbIBM" 'True) (C1 ('MetaCons "SearchAliasRouting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty RoutingValue))))
Show SearchAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Eq SearchAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep SearchAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep SearchAliasRouting = D1 ('MetaData "SearchAliasRouting" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.24.0.0-A3ENRGIPQhkGcPhIwxbIBM" 'True) (C1 ('MetaCons "SearchAliasRouting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty RoutingValue))))

data UpdatableIndexSetting Source #

Constructors

NumberOfReplicas ReplicaCount

The number of replicas each shard has.

AutoExpandReplicas ReplicaBounds 
BlocksReadOnly Bool

Set to True to have the index read only. False to allow writes and metadata changes.

BlocksRead Bool

Set to True to disable read operations against the index.

BlocksWrite Bool

Set to True to disable write operations against the index.

BlocksMetaData Bool

Set to True to disable metadata operations against the index.

RefreshInterval NominalDiffTime

The async refresh interval of a shard

IndexConcurrency Int 
FailOnMergeFailure Bool 
TranslogFlushThresholdOps Int

When to flush on operations.

TranslogFlushThresholdSize Bytes

When to flush based on translog (bytes) size.

TranslogFlushThresholdPeriod NominalDiffTime

When to flush based on a period of not flushing.

TranslogDisableFlush Bool

Disables flushing. Note, should be set for a short interval and then enabled.

CacheFilterMaxSize (Maybe Bytes)

The maximum size of filter cache (per segment in shard).

CacheFilterExpire (Maybe NominalDiffTime)

The expire after access time for filter cache.

GatewaySnapshotInterval NominalDiffTime

The gateway snapshot interval (only applies to shared gateways).

RoutingAllocationInclude (NonEmpty NodeAttrFilter)

A node matching any rule will be allowed to host shards from the index.

RoutingAllocationExclude (NonEmpty NodeAttrFilter)

A node matching any rule will NOT be allowed to host shards from the index.

RoutingAllocationRequire (NonEmpty NodeAttrFilter)

Only nodes matching all rules will be allowed to host shards from the index.

RoutingAllocationEnable AllocationPolicy

Enables shard allocation for a specific index.

RoutingAllocationShardsPerNode ShardCount

Controls the total number of shards (replicas and primaries) allowed to be allocated on a single node.

RecoveryInitialShards InitialShardCount

When using local gateway a particular shard is recovered only if there can be allocated quorum shards in the cluster.

GCDeletes NominalDiffTime 
TTLDisablePurge Bool

Disables temporarily the purge of expired docs.

TranslogFSType FSType 
CompressionSetting Compression 
IndexCompoundFormat CompoundFormat 
IndexCompoundOnFlush Bool 
WarmerEnabled Bool 
MappingTotalFieldsLimit Int 
AnalysisSetting Analysis

Analysis is not a dynamic setting and can only be performed on a closed index.

UnassignedNodeLeftDelayedTimeout NominalDiffTime

Sets a delay to the allocation of replica shards which become unassigned because a node has left, giving them chance to return. See https://www.elastic.co/guide/en/elasticsearch/reference/5.6/delayed-allocation.html

Instances

Instances details
FromJSON UpdatableIndexSetting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

ToJSON UpdatableIndexSetting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Generic UpdatableIndexSetting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Associated Types

type Rep UpdatableIndexSetting 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep UpdatableIndexSetting = D1 ('MetaData "UpdatableIndexSetting" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.24.0.0-A3ENRGIPQhkGcPhIwxbIBM" 'False) (((((C1 ('MetaCons "NumberOfReplicas" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplicaCount)) :+: C1 ('MetaCons "AutoExpandReplicas" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplicaBounds))) :+: (C1 ('MetaCons "BlocksReadOnly" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "BlocksRead" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :+: ((C1 ('MetaCons "BlocksWrite" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "BlocksMetaData" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: (C1 ('MetaCons "RefreshInterval" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NominalDiffTime)) :+: C1 ('MetaCons "IndexConcurrency" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))))) :+: (((C1 ('MetaCons "FailOnMergeFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "TranslogFlushThresholdOps" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :+: (C1 ('MetaCons "TranslogFlushThresholdSize" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bytes)) :+: C1 ('MetaCons "TranslogFlushThresholdPeriod" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NominalDiffTime)))) :+: ((C1 ('MetaCons "TranslogDisableFlush" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "CacheFilterMaxSize" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bytes)))) :+: (C1 ('MetaCons "CacheFilterExpire" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe NominalDiffTime))) :+: C1 ('MetaCons "GatewaySnapshotInterval" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NominalDiffTime)))))) :+: ((((C1 ('MetaCons "RoutingAllocationInclude" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty NodeAttrFilter))) :+: C1 ('MetaCons "RoutingAllocationExclude" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty NodeAttrFilter)))) :+: (C1 ('MetaCons "RoutingAllocationRequire" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty NodeAttrFilter))) :+: C1 ('MetaCons "RoutingAllocationEnable" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AllocationPolicy)))) :+: ((C1 ('MetaCons "RoutingAllocationShardsPerNode" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShardCount)) :+: C1 ('MetaCons "RecoveryInitialShards" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InitialShardCount))) :+: (C1 ('MetaCons "GCDeletes" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NominalDiffTime)) :+: C1 ('MetaCons "TTLDisablePurge" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))) :+: (((C1 ('MetaCons "TranslogFSType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FSType)) :+: C1 ('MetaCons "CompressionSetting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Compression))) :+: (C1 ('MetaCons "IndexCompoundFormat" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CompoundFormat)) :+: C1 ('MetaCons "IndexCompoundOnFlush" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :+: ((C1 ('MetaCons "WarmerEnabled" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "MappingTotalFieldsLimit" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :+: (C1 ('MetaCons "AnalysisSetting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Analysis)) :+: C1 ('MetaCons "UnassignedNodeLeftDelayedTimeout" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NominalDiffTime)))))))
Show UpdatableIndexSetting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

Eq UpdatableIndexSetting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep UpdatableIndexSetting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Indices

type Rep UpdatableIndexSetting = D1 ('MetaData "UpdatableIndexSetting" "Database.Bloodhound.Internal.Versions.Common.Types.Indices" "bloodhound-0.24.0.0-A3ENRGIPQhkGcPhIwxbIBM" 'False) (((((C1 ('MetaCons "NumberOfReplicas" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplicaCount)) :+: C1 ('MetaCons "AutoExpandReplicas" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplicaBounds))) :+: (C1 ('MetaCons "BlocksReadOnly" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "BlocksRead" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :+: ((C1 ('MetaCons "BlocksWrite" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "BlocksMetaData" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: (C1 ('MetaCons "RefreshInterval" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NominalDiffTime)) :+: C1 ('MetaCons "IndexConcurrency" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))))) :+: (((C1 ('MetaCons "FailOnMergeFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "TranslogFlushThresholdOps" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :+: (C1 ('MetaCons "TranslogFlushThresholdSize" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bytes)) :+: C1 ('MetaCons "TranslogFlushThresholdPeriod" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NominalDiffTime)))) :+: ((C1 ('MetaCons "TranslogDisableFlush" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "CacheFilterMaxSize" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bytes)))) :+: (C1 ('MetaCons "CacheFilterExpire" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe NominalDiffTime))) :+: C1 ('MetaCons "GatewaySnapshotInterval" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NominalDiffTime)))))) :+: ((((C1 ('MetaCons "RoutingAllocationInclude" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty NodeAttrFilter))) :+: C1 ('MetaCons "RoutingAllocationExclude" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty NodeAttrFilter)))) :+: (C1 ('MetaCons "RoutingAllocationRequire" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty NodeAttrFilter))) :+: C1 ('MetaCons "RoutingAllocationEnable" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AllocationPolicy)))) :+: ((C1 ('MetaCons "RoutingAllocationShardsPerNode" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShardCount)) :+: C1 ('MetaCons "RecoveryInitialShards" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InitialShardCount))) :+: (C1 ('MetaCons "GCDeletes" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NominalDiffTime)) :+: C1 ('MetaCons "TTLDisablePurge" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))) :+: (((C1 ('MetaCons "TranslogFSType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FSType)) :+: C1 ('MetaCons "CompressionSetting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Compression))) :+: (C1 ('MetaCons "IndexCompoundFormat" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CompoundFormat)) :+: C1 ('MetaCons "IndexCompoundOnFlush" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :+: ((C1 ('MetaCons "WarmerEnabled" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "MappingTotalFieldsLimit" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :+: (C1 ('MetaCons "AnalysisSetting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Analysis)) :+: C1 ('MetaCons "UnassignedNodeLeftDelayedTimeout" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NominalDiffTime)))))))

defaultForceMergeIndexSettings :: ForceMergeIndexSettings Source #

defaultForceMergeIndexSettings implements the default settings that Elasticsearch uses for index optimization. maxNumSegments is Nothing, onlyExpungeDeletes is False, and flushAfterOptimize is True.

defaultIndexDocumentSettings :: IndexDocumentSettings Source #

Reasonable default settings. Chooses no version control and no parent.

newtype EsAddress Source #

A quirky address format used throughout Elasticsearch. An example would be inet[/1.1.1.1:9200]. inet may be a placeholder for a FQDN.

Constructors

EsAddress 

Fields

newtype EsPassword Source #

Password type used for HTTP Basic authentication. See basicAuthHook.

Constructors

EsPassword 

Fields

newtype EsUsername Source #

Username type used for HTTP Basic authentication. See basicAuthHook.

Constructors

EsUsername 

Fields

data InitialShardCount Source #

Instances

Instances details
FromJSON InitialShardCount Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

ToJSON InitialShardCount Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

Generic InitialShardCount Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

Associated Types

type Rep InitialShardCount 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

type Rep InitialShardCount = D1 ('MetaData "InitialShardCount" "Database.Bloodhound.Internal.Versions.Common.Types.Nodes" "bloodhound-0.24.0.0-A3ENRGIPQhkGcPhIwxbIBM" 'False) ((C1 ('MetaCons "QuorumShards" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "QuorumMinus1Shards" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "FullShards" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "FullMinus1Shards" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ExplicitShards" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))))
Show InitialShardCount Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

Eq InitialShardCount Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

type Rep InitialShardCount Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

type Rep InitialShardCount = D1 ('MetaData "InitialShardCount" "Database.Bloodhound.Internal.Versions.Common.Types.Nodes" "bloodhound-0.24.0.0-A3ENRGIPQhkGcPhIwxbIBM" 'False) ((C1 ('MetaCons "QuorumShards" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "QuorumMinus1Shards" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "FullShards" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "FullMinus1Shards" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ExplicitShards" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))))

newtype JVMVersion Source #

We cannot parse JVM version numbers and we're not going to try.

Constructors

JVMVersion 

Fields

newtype NetworkInterfaceName Source #

data NodeIndicesStats Source #

Constructors

NodeIndicesStats 

Fields

data NodeSelection Source #

NodeSelection is used for most cluster APIs. See here for more details.

Constructors

LocalNode

Whatever node receives this request

NodeList (NonEmpty NodeSelector) 
AllNodes 

data NodeSelector Source #

An exact match or pattern to identify a node. Note that All of these options support wildcarding, so your node name, server, attr name can all contain * characters to be a fuzzy match.

Constructors

NodeByName NodeName 
NodeByFullNodeId FullNodeId 
NodeByHost Server

e.g. 10.0.0.1 or even 10.0.0.*

NodeByAttribute NodeAttrName Text

NodeAttrName can be a pattern, e.g. rack*. The value can too.

newtype PID Source #

Constructors

PID 

Fields

newtype VersionNumber Source #

Traditional software versioning number

Constructors

VersionNumber 

Instances

Instances details
FromJSON VersionNumber Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

ToJSON VersionNumber Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

Show VersionNumber Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

Eq VersionNumber Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

Ord VersionNumber Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Nodes

data FsSnapshotRepo Source #

A filesystem-based snapshot repo that ships with Elasticsearch. This is an instance of SnapshotRepo so it can be used with updateSnapshotRepo

Constructors

FsSnapshotRepo 

Fields

Instances

Instances details
Generic FsSnapshotRepo Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

Associated Types

type Rep FsSnapshotRepo 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

type Rep FsSnapshotRepo = D1 ('MetaData "FsSnapshotRepo" "Database.Bloodhound.Internal.Versions.Common.Types.Snapshots" "bloodhound-0.24.0.0-A3ENRGIPQhkGcPhIwxbIBM" 'False) (C1 ('MetaCons "FsSnapshotRepo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "fsrName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SnapshotRepoName) :*: (S1 ('MetaSel ('Just "fsrLocation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: S1 ('MetaSel ('Just "fsrCompressMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: (S1 ('MetaSel ('Just "fsrChunkSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bytes)) :*: (S1 ('MetaSel ('Just "fsrMaxRestoreBytesPerSec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bytes)) :*: S1 ('MetaSel ('Just "fsrMaxSnapshotBytesPerSec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bytes))))))
Show FsSnapshotRepo Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

SnapshotRepo FsSnapshotRepo Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

Eq FsSnapshotRepo Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

type Rep FsSnapshotRepo Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

type Rep FsSnapshotRepo = D1 ('MetaData "FsSnapshotRepo" "Database.Bloodhound.Internal.Versions.Common.Types.Snapshots" "bloodhound-0.24.0.0-A3ENRGIPQhkGcPhIwxbIBM" 'False) (C1 ('MetaCons "FsSnapshotRepo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "fsrName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SnapshotRepoName) :*: (S1 ('MetaSel ('Just "fsrLocation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: S1 ('MetaSel ('Just "fsrCompressMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: (S1 ('MetaSel ('Just "fsrChunkSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bytes)) :*: (S1 ('MetaSel ('Just "fsrMaxRestoreBytesPerSec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bytes)) :*: S1 ('MetaSel ('Just "fsrMaxSnapshotBytesPerSec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bytes))))))

data GenericSnapshotRepo Source #

A generic representation of a snapshot repo. This is what gets sent to and parsed from the server. For repo types enabled by plugins that aren't exported by this library, consider making a custom type which implements SnapshotRepo. If it is a common repo type, consider submitting a pull request to have it included in the library proper

newtype GenericSnapshotRepoSettings Source #

Opaque representation of snapshot repo settings. Instances of SnapshotRepo will produce this.

newtype RestoreRenamePattern Source #

Regex-stype pattern, e.g. "index_(.+)" to match index names

Constructors

RestoreRenamePattern 

Fields

Instances

Instances details
ToJSON RestoreRenamePattern Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

Show RestoreRenamePattern Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

Eq RestoreRenamePattern Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

Ord RestoreRenamePattern Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

data RestoreRenameToken Source #

A single token in a index renaming scheme for a restore. These are concatenated into a string before being sent to Elasticsearch. Check out these Java docs to find out more if you're into that sort of thing.

Constructors

RRTLit Text

Just a literal string of characters

RRSubWholeMatch

Equivalent to $0. The entire matched pattern, not any subgroup

RRSubGroup RRGroupRefNum

A specific reference to a group number

data SnapshotCreateSettings Source #

Constructors

SnapshotCreateSettings 

Fields

  • snapWaitForCompletion :: Bool

    Should the API call return immediately after initializing the snapshot or wait until completed? Note that if this is enabled it could wait a long time, so you should adjust your ManagerSettings accordingly to set long timeouts or explicitly handle timeouts.

  • snapIndices :: Maybe IndexSelection

    Nothing will snapshot all indices. Just [] is permissable and will essentially be a no-op snapshot.

  • snapIgnoreUnavailable :: Bool

    If set to True, any matched indices that don't exist will be ignored. Otherwise it will be an error and fail.

  • snapIncludeGlobalState :: Bool
     
  • snapPartial :: Bool

    If some indices failed to snapshot (e.g. if not all primary shards are available), should the process proceed?

data SnapshotPattern Source #

Either specifies an exact snapshot name or one with globs in it, e.g. SnapPattern "foo*" NOTE: Patterns are not supported on ES < 1.7

newtype SnapshotRepoName Source #

The unique name of a snapshot repository.

Constructors

SnapshotRepoName 

Instances

Instances details
FromJSON SnapshotRepoName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

ToJSON SnapshotRepoName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

Show SnapshotRepoName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

Eq SnapshotRepoName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

Ord SnapshotRepoName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

data SnapshotRepoPattern Source #

Either specifies an exact repo name or one with globs in it, e.g. RepoPattern "foo*" NOTE: Patterns are not supported on ES < 1.7

newtype SnapshotRepoType Source #

Constructors

SnapshotRepoType 

Instances

Instances details
FromJSON SnapshotRepoType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

ToJSON SnapshotRepoType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

Show SnapshotRepoType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

Eq SnapshotRepoType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

Ord SnapshotRepoType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Versions.Common.Types.Snapshots

newtype SnapshotRepoUpdateSettings Source #

Constructors

SnapshotRepoUpdateSettings 

Fields

  • repoUpdateVerify :: Bool

    After creation/update, synchronously check that nodes can write to this repo. Defaults to True. You may use False if you need a faster response and plan on verifying manually later with verifySnapshotRepo.

data SnapshotRestoreSettings Source #

Constructors

SnapshotRestoreSettings 

Fields

defaultSnapshotCreateSettings :: SnapshotCreateSettings Source #

Reasonable defaults for snapshot creation

  • snapWaitForCompletion False
  • snapIndices Nothing
  • snapIgnoreUnavailable False
  • snapIncludeGlobalState True
  • snapPartial False

defaultSnapshotRepoUpdateSettings :: SnapshotRepoUpdateSettings Source #

Reasonable defaults for repo creation/update

  • repoUpdateVerify True

defaultSnapshotRestoreSettings :: SnapshotRestoreSettings Source #

Reasonable defaults for snapshot restores

  • snapRestoreWaitForCompletion False
  • snapRestoreIndices Nothing
  • snapRestoreIgnoreUnavailable False
  • snapRestoreIncludeGlobalState True
  • snapRestoreRenamePattern Nothing
  • snapRestoreRenameReplacement Nothing
  • snapRestorePartial False
  • snapRestoreIncludeAliases True
  • snapRestoreIndexSettingsOverrides Nothing
  • snapRestoreIgnoreIndexSettings Nothing

mkRRGroupRefNum :: Int -> Maybe RRGroupRefNum Source #

Only allows valid group number references (1-9).

newtype BH (m :: Type -> Type) a Source #

Basic BH implementation

Constructors

BH 

Fields

Instances

Instances details
MonadTrans BH Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

lift :: Monad m => m a -> BH m a #

MonadReader r m => MonadReader r (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

ask :: BH m r #

local :: (r -> r) -> BH m a -> BH m a #

reader :: (r -> a) -> BH m a #

MonadState s m => MonadState s (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

get :: BH m s #

put :: s -> BH m () #

state :: (s -> (a, s)) -> BH m a #

MonadWriter w m => MonadWriter w (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

writer :: (a, w) -> BH m a #

tell :: w -> BH m () #

listen :: BH m a -> BH m (a, w) #

pass :: BH m (a, w -> w) -> BH m a #

MonadFail m => MonadFail (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

fail :: String -> BH m a #

MonadFix m => MonadFix (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

mfix :: (a -> BH m a) -> BH m a #

MonadIO m => MonadIO (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

liftIO :: IO a -> BH m a #

Monad m => Alternative (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

empty :: BH m a #

(<|>) :: BH m a -> BH m a -> BH m a #

some :: BH m a -> BH m [a] #

many :: BH m a -> BH m [a] #

Monad m => Applicative (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

pure :: a -> BH m a #

(<*>) :: BH m (a -> b) -> BH m a -> BH m b #

liftA2 :: (a -> b -> c) -> BH m a -> BH m b -> BH m c #

(*>) :: BH m a -> BH m b -> BH m b #

(<*) :: BH m a -> BH m b -> BH m a #

Functor m => Functor (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

fmap :: (a -> b) -> BH m a -> BH m b #

(<$) :: a -> BH m b -> BH m a #

Monad m => Monad (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

(>>=) :: BH m a -> (a -> BH m b) -> BH m b #

(>>) :: BH m a -> BH m b -> BH m b #

return :: a -> BH m a #

Monad m => MonadPlus (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

mzero :: BH m a #

mplus :: BH m a -> BH m a -> BH m a #

(Functor m, Applicative m, MonadIO m, MonadCatch m, MonadThrow m) => MonadBH (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Associated Types

type Backend (BH m) 
Instance details

Defined in Database.Bloodhound.Client.Cluster

type Backend (BH m) = 'Dynamic

Methods

dispatch :: BHRequest contextualized body -> BH m (BHResponse contextualized body) Source #

tryEsError :: BH m a -> BH m (Either EsError a) Source #

throwEsError :: EsError -> BH m a Source #

MonadCatch m => MonadCatch (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

catch :: (HasCallStack, Exception e) => BH m a -> (e -> BH m a) -> BH m a #

MonadMask m => MonadMask (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

mask :: HasCallStack => ((forall a. BH m a -> BH m a) -> BH m b) -> BH m b #

uninterruptibleMask :: HasCallStack => ((forall a. BH m a -> BH m a) -> BH m b) -> BH m b #

generalBracket :: HasCallStack => BH m a -> (a -> ExitCase b -> BH m c) -> (a -> BH m b) -> BH m (b, c) #

MonadThrow m => MonadThrow (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

throwM :: (HasCallStack, Exception e) => e -> BH m a #

type Backend (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

type Backend (BH m) = 'Dynamic

data BHEnv Source #

Common environment for Elasticsearch calls. Connections will be pipelined according to the provided HTTP connection manager.

Constructors

BHEnv 

Fields

class (Functor m, Applicative m, MonadIO m, MonadCatch m) => MonadBH (m :: Type -> Type) where Source #

All API calls to Elasticsearch operate within MonadBH . The idea is that it can be easily embedded in your own monad transformer stack. A default instance for a ReaderT and alias BH is provided for the simple case.

Associated Types

type Backend (m :: Type -> Type) :: BackendType Source #

Methods

dispatch :: BHRequest contextualized body -> m (BHResponse contextualized body) Source #

tryEsError :: m a -> m (Either EsError a) Source #

throwEsError :: EsError -> m a Source #

Instances

Instances details
(Functor m, Applicative m, MonadIO m, MonadCatch m, MonadThrow m) => MonadBH (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Associated Types

type Backend (BH m) 
Instance details

Defined in Database.Bloodhound.Client.Cluster

type Backend (BH m) = 'Dynamic

Methods

dispatch :: BHRequest contextualized body -> BH m (BHResponse contextualized body) Source #

tryEsError :: BH m a -> BH m (Either EsError a) Source #

throwEsError :: EsError -> BH m a Source #

MonadBH m => MonadBH (StaticBH backend m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Associated Types

type Backend (StaticBH backend m) 
Instance details

Defined in Database.Bloodhound.Client.Cluster

type Backend (StaticBH backend m) = backend

Methods

dispatch :: BHRequest contextualized body -> StaticBH backend m (BHResponse contextualized body) Source #

tryEsError :: StaticBH backend m a -> StaticBH backend m (Either EsError a) Source #

throwEsError :: EsError -> StaticBH backend m a Source #

data BackendType Source #

Backend (i.e. implementation) the queries are ran against

Constructors

ElasticSearch7 
OpenSearch1 
OpenSearch2 
Dynamic

unknown, can be anything

type WithBackend (backend :: BackendType) (m :: Type -> Type) = WithBackendType backend (Backend m) Source #

Helper for WithBackendType

type family WithBackendType (expected :: BackendType) (actual :: BackendType) where ... Source #

Best-effort, by-passed for Dynamic, statically enforced implementation

Equations

WithBackendType e 'Dynamic = () 
WithBackendType e a = e ~ a 

newtype StaticBH (backend :: BackendType) (m :: Type -> Type) a Source #

Statically-type backend.

It's also an useful wrapper for DerivingVia

Constructors

StaticBH 

Fields

Instances

Instances details
MonadReader r m => MonadReader r (StaticBH backend m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

ask :: StaticBH backend m r #

local :: (r -> r) -> StaticBH backend m a -> StaticBH backend m a #

reader :: (r -> a) -> StaticBH backend m a #

MonadState s m => MonadState s (StaticBH backend m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

get :: StaticBH backend m s #

put :: s -> StaticBH backend m () #

state :: (s -> (a, s)) -> StaticBH backend m a #

MonadWriter w m => MonadWriter w (StaticBH backend m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

writer :: (a, w) -> StaticBH backend m a #

tell :: w -> StaticBH backend m () #

listen :: StaticBH backend m a -> StaticBH backend m (a, w) #

pass :: StaticBH backend m (a, w -> w) -> StaticBH backend m a #

MonadTrans (StaticBH backend) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

lift :: Monad m => m a -> StaticBH backend m a #

MonadFail m => MonadFail (StaticBH backend m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

fail :: String -> StaticBH backend m a #

MonadFix m => MonadFix (StaticBH backend m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

mfix :: (a -> StaticBH backend m a) -> StaticBH backend m a #

MonadIO m => MonadIO (StaticBH backend m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

liftIO :: IO a -> StaticBH backend m a #

Alternative m => Alternative (StaticBH backend m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

empty :: StaticBH backend m a #

(<|>) :: StaticBH backend m a -> StaticBH backend m a -> StaticBH backend m a #

some :: StaticBH backend m a -> StaticBH backend m [a] #

many :: StaticBH backend m a -> StaticBH backend m [a] #

Applicative m => Applicative (StaticBH backend m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

pure :: a -> StaticBH backend m a #

(<*>) :: StaticBH backend m (a -> b) -> StaticBH backend m a -> StaticBH backend m b #

liftA2 :: (a -> b -> c) -> StaticBH backend m a -> StaticBH backend m b -> StaticBH backend m c #

(*>) :: StaticBH backend m a -> StaticBH backend m b -> StaticBH backend m b #

(<*) :: StaticBH backend m a -> StaticBH backend m b -> StaticBH backend m a #

Functor m => Functor (StaticBH backend m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

fmap :: (a -> b) -> StaticBH backend m a -> StaticBH backend m b #

(<$) :: a -> StaticBH backend m b -> StaticBH backend m a #

Monad m => Monad (StaticBH backend m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

(>>=) :: StaticBH backend m a -> (a -> StaticBH backend m b) -> StaticBH backend m b #

(>>) :: StaticBH backend m a -> StaticBH backend m b -> StaticBH backend m b #

return :: a -> StaticBH backend m a #

MonadPlus m => MonadPlus (StaticBH backend m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

mzero :: StaticBH backend m a #

mplus :: StaticBH backend m a -> StaticBH backend m a -> StaticBH backend m a #

MonadBH m => MonadBH (StaticBH backend m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Associated Types

type Backend (StaticBH backend m) 
Instance details

Defined in Database.Bloodhound.Client.Cluster

type Backend (StaticBH backend m) = backend

Methods

dispatch :: BHRequest contextualized body -> StaticBH backend m (BHResponse contextualized body) Source #

tryEsError :: StaticBH backend m a -> StaticBH backend m (Either EsError a) Source #

throwEsError :: EsError -> StaticBH backend m a Source #

MonadCatch m => MonadCatch (StaticBH backend m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

catch :: (HasCallStack, Exception e) => StaticBH backend m a -> (e -> StaticBH backend m a) -> StaticBH backend m a #

MonadMask m => MonadMask (StaticBH backend m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

mask :: HasCallStack => ((forall a. StaticBH backend m a -> StaticBH backend m a) -> StaticBH backend m b) -> StaticBH backend m b #

uninterruptibleMask :: HasCallStack => ((forall a. StaticBH backend m a -> StaticBH backend m a) -> StaticBH backend m b) -> StaticBH backend m b #

generalBracket :: HasCallStack => StaticBH backend m a -> (a -> ExitCase b -> StaticBH backend m c) -> (a -> StaticBH backend m b) -> StaticBH backend m (b, c) #

MonadThrow m => MonadThrow (StaticBH backend m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

Methods

throwM :: (HasCallStack, Exception e) => e -> StaticBH backend m a #

type Backend (StaticBH backend m) Source # 
Instance details

Defined in Database.Bloodhound.Client.Cluster

type Backend (StaticBH backend m) = backend

mkBHEnv :: Server -> Manager -> BHEnv Source #

Create a BHEnv with all optional fields defaulted. HTTP hook will be a noop. You can use the exported fields to customize it further, e.g.:

> (mkBHEnv myServer myManager) { bhRequestHook = customHook }

performBHRequest :: (MonadBH m, MonadThrow m, ParseBHResponse contextualized) => BHRequest contextualized a -> m a Source #

runBH :: BHEnv -> BH m a -> m (Either EsError a) Source #

tryPerformBHRequest :: (MonadBH m, MonadThrow m, ParseBHResponse contextualized) => BHRequest contextualized a -> m (ParsedEsResponse a) Source #

unsafePerformBH :: forall (backend :: BackendType) m a. StaticBH backend m a -> m a Source #

Run a piece of code as-if we are on a given backend

withDynamicBH :: MonadBH m => BackendType -> (forall (backend :: BackendType). SBackendType backend -> StaticBH backend m a) -> m a Source #

Run an action given an actual backend