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

Database.Bloodhound.Internal.Client

Synopsis

Documentation

data BHEnv Source #

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

Constructors

BHEnv 

Fields

Instances

Instances details
(Functor m, Applicative m, MonadIO m) => MonadBH (ReaderT BHEnv m) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

class (Functor m, Applicative m, MonadIO m) => MonadBH m 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.

Methods

getBHEnv :: m BHEnv Source #

Instances

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

Defined in Database.Bloodhound.Internal.Client

Methods

getBHEnv :: BH m BHEnv Source #

(Functor m, Applicative m, MonadIO m) => MonadBH (ReaderT BHEnv m) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

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 }

newtype BH m a Source #

Constructors

BH 

Fields

Instances

Instances details
MonadTrans BH Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

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

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

Defined in Database.Bloodhound.Internal.Client

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 #

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

Defined in Database.Bloodhound.Internal.Client

Methods

get :: BH m s #

put :: s -> BH m () #

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

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

Defined in Database.Bloodhound.Internal.Client

Methods

ask :: BH m r #

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

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

MonadError e m => MonadError e (BH m) Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

throwError :: e -> BH m a #

catchError :: BH m a -> (e -> BH m a) -> BH m a #

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

Defined in Database.Bloodhound.Internal.Client

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 #

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

Defined in Database.Bloodhound.Internal.Client

Methods

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

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

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

Defined in Database.Bloodhound.Internal.Client

Methods

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

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

Defined in Database.Bloodhound.Internal.Client

Methods

fail :: String -> BH m a #

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

Defined in Database.Bloodhound.Internal.Client

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 #

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

Defined in Database.Bloodhound.Internal.Client

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] #

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

Defined in Database.Bloodhound.Internal.Client

Methods

mzero :: BH m a #

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

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

Defined in Database.Bloodhound.Internal.Client

Methods

liftIO :: IO a -> BH m a #

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

Defined in Database.Bloodhound.Internal.Client

Methods

throwM :: Exception e => e -> BH m a #

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

Defined in Database.Bloodhound.Internal.Client

Methods

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

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

Defined in Database.Bloodhound.Internal.Client

Methods

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

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

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

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

Defined in Database.Bloodhound.Internal.Client

Methods

getBHEnv :: BH m BHEnv Source #

runBH :: BHEnv -> BH m a -> m a Source #

data Version Source #

Version is embedded in Status

Instances

Instances details
Eq Version Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

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

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

Show Version Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Generic Version Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Associated Types

type Rep Version :: Type -> Type #

Methods

from :: Version -> Rep Version x #

to :: Rep Version x -> Version #

ToJSON Version Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

FromJSON Version Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep Version Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep Version = D1 ('MetaData "Version" "Database.Bloodhound.Internal.Client" "bloodhound-0.20.0.2-9g12ggjhChv8jJT8C6bH2X" '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 

Instances

Instances details
Eq Status Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

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

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

Show Status Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

FromJSON Status Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

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
Eq IndexSettings Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Show IndexSettings Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Generic IndexSettings Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Associated Types

type Rep IndexSettings :: Type -> Type #

ToJSON IndexSettings Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

FromJSON IndexSettings Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep IndexSettings Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep IndexSettings = D1 ('MetaData "IndexSettings" "Database.Bloodhound.Internal.Client" "bloodhound-0.20.0.2-9g12ggjhChv8jJT8C6bH2X" '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 IndexMappingsLimits Source #

Instances

Instances details
Eq IndexMappingsLimits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Show IndexMappingsLimits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Generic IndexMappingsLimits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Associated Types

type Rep IndexMappingsLimits :: Type -> Type #

ToJSON IndexMappingsLimits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

FromJSON IndexMappingsLimits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep IndexMappingsLimits Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep IndexMappingsLimits = D1 ('MetaData "IndexMappingsLimits" "Database.Bloodhound.Internal.Client" "bloodhound-0.20.0.2-9g12ggjhChv8jJT8C6bH2X" '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 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.

defaultForceMergeIndexSettings :: ForceMergeIndexSettings Source #

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

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
Eq UpdatableIndexSetting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Show UpdatableIndexSetting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Generic UpdatableIndexSetting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Associated Types

type Rep UpdatableIndexSetting :: Type -> Type #

ToJSON UpdatableIndexSetting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

FromJSON UpdatableIndexSetting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep UpdatableIndexSetting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep UpdatableIndexSetting = D1 ('MetaData "UpdatableIndexSetting" "Database.Bloodhound.Internal.Client" "bloodhound-0.20.0.2-9g12ggjhChv8jJT8C6bH2X" '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)))))))

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
Eq Compression Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Show Compression Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Generic Compression Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Associated Types

type Rep Compression :: Type -> Type #

ToJSON Compression Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

FromJSON Compression Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep Compression Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep Compression = D1 ('MetaData "Compression" "Database.Bloodhound.Internal.Client" "bloodhound-0.20.0.2-9g12ggjhChv8jJT8C6bH2X" 'False) (C1 ('MetaCons "CompressionDefault" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CompressionBest" 'PrefixI 'False) (U1 :: Type -> Type))

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 

Instances

Instances details
Eq Bytes Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

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

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

Ord Bytes Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

compare :: Bytes -> Bytes -> Ordering #

(<) :: Bytes -> Bytes -> Bool #

(<=) :: Bytes -> Bytes -> Bool #

(>) :: Bytes -> Bytes -> Bool #

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

max :: Bytes -> Bytes -> Bytes #

min :: Bytes -> Bytes -> Bytes #

Show Bytes Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

showsPrec :: Int -> Bytes -> ShowS #

show :: Bytes -> String #

showList :: [Bytes] -> ShowS #

Generic Bytes Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Associated Types

type Rep Bytes :: Type -> Type #

Methods

from :: Bytes -> Rep Bytes x #

to :: Rep Bytes x -> Bytes #

ToJSON Bytes Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

FromJSON Bytes Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep Bytes Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep Bytes = D1 ('MetaData "Bytes" "Database.Bloodhound.Internal.Client" "bloodhound-0.20.0.2-9g12ggjhChv8jJT8C6bH2X" 'True) (C1 ('MetaCons "Bytes" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

data FSType Source #

Constructors

FSSimple 
FSBuffered 

Instances

Instances details
Eq FSType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

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

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

Show FSType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Generic FSType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Associated Types

type Rep FSType :: Type -> Type #

Methods

from :: FSType -> Rep FSType x #

to :: Rep FSType x -> FSType #

ToJSON FSType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

FromJSON FSType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep FSType Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep FSType = D1 ('MetaData "FSType" "Database.Bloodhound.Internal.Client" "bloodhound-0.20.0.2-9g12ggjhChv8jJT8C6bH2X" 'False) (C1 ('MetaCons "FSSimple" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FSBuffered" 'PrefixI 'False) (U1 :: Type -> Type))

data InitialShardCount Source #

Instances

Instances details
Eq InitialShardCount Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Show InitialShardCount Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Generic InitialShardCount Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Associated Types

type Rep InitialShardCount :: Type -> Type #

ToJSON InitialShardCount Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

FromJSON InitialShardCount Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep InitialShardCount Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep InitialShardCount = D1 ('MetaData "InitialShardCount" "Database.Bloodhound.Internal.Client" "bloodhound-0.20.0.2-9g12ggjhChv8jJT8C6bH2X" '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)))))

data CompoundFormat Source #

Constructors

CompoundFileFormat Bool 
MergeSegmentVsTotalIndex Double

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

Instances

Instances details
Eq CompoundFormat Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Show CompoundFormat Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Generic CompoundFormat Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Associated Types

type Rep CompoundFormat :: Type -> Type #

ToJSON CompoundFormat Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

FromJSON CompoundFormat Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep CompoundFormat Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep CompoundFormat = D1 ('MetaData "CompoundFormat" "Database.Bloodhound.Internal.Client" "bloodhound-0.20.0.2-9g12ggjhChv8jJT8C6bH2X" '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 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 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 

Instances

Instances details
Eq Mapping Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

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

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

Show Mapping Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

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
Eq AllocationPolicy Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Show AllocationPolicy Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Generic AllocationPolicy Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Associated Types

type Rep AllocationPolicy :: Type -> Type #

ToJSON AllocationPolicy Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

FromJSON AllocationPolicy Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep AllocationPolicy Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep AllocationPolicy = D1 ('MetaData "AllocationPolicy" "Database.Bloodhound.Internal.Client" "bloodhound-0.20.0.2-9g12ggjhChv8jJT8C6bH2X" '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 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.

newtype SearchAliasRouting Source #

Instances

Instances details
Eq SearchAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Show SearchAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Generic SearchAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Associated Types

type Rep SearchAliasRouting :: Type -> Type #

ToJSON SearchAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

FromJSON SearchAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep SearchAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep SearchAliasRouting = D1 ('MetaData "SearchAliasRouting" "Database.Bloodhound.Internal.Client" "bloodhound-0.20.0.2-9g12ggjhChv8jJT8C6bH2X" 'True) (C1 ('MetaCons "SearchAliasRouting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty RoutingValue))))

newtype IndexAliasRouting Source #

Instances

Instances details
Eq IndexAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Show IndexAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Generic IndexAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Associated Types

type Rep IndexAliasRouting :: Type -> Type #

ToJSON IndexAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

FromJSON IndexAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep IndexAliasRouting Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep IndexAliasRouting = D1 ('MetaData "IndexAliasRouting" "Database.Bloodhound.Internal.Client" "bloodhound-0.20.0.2-9g12ggjhChv8jJT8C6bH2X" 'True) (C1 ('MetaCons "IndexAliasRouting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RoutingValue)))

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

defaultIndexDocumentSettings :: IndexDocumentSettings Source #

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

data IndexSelection Source #

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

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 TemplateName Source #

TemplateName is used to describe which template to querycreatedelete

Constructors

TemplateName Text 

Instances

Instances details
Eq TemplateName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Show TemplateName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Generic TemplateName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Associated Types

type Rep TemplateName :: Type -> Type #

ToJSON TemplateName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

FromJSON TemplateName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep TemplateName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep TemplateName = D1 ('MetaData "TemplateName" "Database.Bloodhound.Internal.Client" "bloodhound-0.20.0.2-9g12ggjhChv8jJT8C6bH2X" 'True) (C1 ('MetaCons "TemplateName" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype IndexPattern Source #

IndexPattern represents a pattern which is matched against index names

Constructors

IndexPattern Text 

Instances

Instances details
Eq IndexPattern Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Show IndexPattern Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Generic IndexPattern Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Associated Types

type Rep IndexPattern :: Type -> Type #

ToJSON IndexPattern Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

FromJSON IndexPattern Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep IndexPattern Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep IndexPattern = D1 ('MetaData "IndexPattern" "Database.Bloodhound.Internal.Client" "bloodhound-0.20.0.2-9g12ggjhChv8jJT8C6bH2X" 'True) (C1 ('MetaCons "IndexPattern" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype EsUsername Source #

Username type used for HTTP Basic authentication. See basicAuthHook.

Constructors

EsUsername 

Fields

newtype EsPassword Source #

Password type used for HTTP Basic authentication. See basicAuthHook.

Constructors

EsPassword 

Fields

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 SnapshotRepoName Source #

The unique name of a snapshot repository.

Constructors

SnapshotRepoName 

Instances

Instances details
Eq SnapshotRepoName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Ord SnapshotRepoName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Show SnapshotRepoName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Generic SnapshotRepoName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Associated Types

type Rep SnapshotRepoName :: Type -> Type #

ToJSON SnapshotRepoName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

FromJSON SnapshotRepoName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep SnapshotRepoName Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep SnapshotRepoName = D1 ('MetaData "SnapshotRepoName" "Database.Bloodhound.Internal.Client" "bloodhound-0.20.0.2-9g12ggjhChv8jJT8C6bH2X" 'True) (C1 ('MetaCons "SnapshotRepoName" 'PrefixI 'True) (S1 ('MetaSel ('Just "snapshotRepoName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

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 SnapshotRepoType Source #

Constructors

SnapshotRepoType 

newtype FullNodeId Source #

Unique, automatically-generated name assigned to nodes that are usually returned in node-oriented APIs.

Constructors

FullNodeId 

Fields

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 NodeIndicesStats Source #

Constructors

NodeIndicesStats 

Fields

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 BuildHash Source #

Typically a 7 character hex string.

Constructors

BuildHash 

Fields

Instances

Instances details
Eq BuildHash Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Ord BuildHash Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Show BuildHash Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Generic BuildHash Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Associated Types

type Rep BuildHash :: Type -> Type #

ToJSON BuildHash Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

FromJSON BuildHash Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep BuildHash Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep BuildHash = D1 ('MetaData "BuildHash" "Database.Bloodhound.Internal.Client" "bloodhound-0.20.0.2-9g12ggjhChv8jJT8C6bH2X" 'True) (C1 ('MetaCons "BuildHash" 'PrefixI 'True) (S1 ('MetaSel ('Just "buildHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype JVMVersion Source #

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

Constructors

JVMVersion 

Fields

newtype PID Source #

Constructors

PID 

Fields

Instances

Instances details
Eq PID Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

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

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

Show PID Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Methods

showsPrec :: Int -> PID -> ShowS #

show :: PID -> String #

showList :: [PID] -> ShowS #

FromJSON PID Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

data SnapshotRestoreSettings Source #

Constructors

SnapshotRestoreSettings 

Fields

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.

defaultSnapshotRepoUpdateSettings :: SnapshotRepoUpdateSettings Source #

Reasonable defaults for repo creation/update

  • repoUpdateVerify True

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
Eq FsSnapshotRepo Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Show FsSnapshotRepo Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Generic FsSnapshotRepo Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

Associated Types

type Rep FsSnapshotRepo :: Type -> Type #

SnapshotRepo FsSnapshotRepo Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep FsSnapshotRepo Source # 
Instance details

Defined in Database.Bloodhound.Internal.Client

type Rep FsSnapshotRepo = D1 ('MetaData "FsSnapshotRepo" "Database.Bloodhound.Internal.Client" "bloodhound-0.20.0.2-9g12ggjhChv8jJT8C6bH2X" '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 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?

defaultSnapshotCreateSettings :: SnapshotCreateSettings Source #

Reasonable defaults for snapshot creation

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

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 RestoreRenamePattern Source #

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

Constructors

RestoreRenamePattern 

Fields

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

mkRRGroupRefNum :: Int -> Maybe RRGroupRefNum Source #

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

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

newtype RestoreIndexSettings Source #

Index settings that can be overridden. The docs only mention you can update number of replicas, but there may be more. You definitely cannot override shard count.